var CSS = { getStyle:function(elem,name){//获取样式 if(elem.style[name]){ return elem.style[name]; ...
分类:
其他好文 时间:
2014-07-31 19:54:27
阅读次数:
198
分享一些php采集程序中的常用函数,省得以后满地找了,想用时来这里看看,哈哈。//当前的脚本网址 function get_php_url(){ if(!empty($_SERVER["REQUEST_URI"])){ $scriptName = $_SERVER["REQUEST_URI"]; $...
分类:
Web程序 时间:
2014-07-31 19:45:47
阅读次数:
230
function getcurrentdate(){//获取系统时间var LSTR_ndate=new Date();var LSTR_Year=LSTR_ndate.getFullYear();var LSTR_Month=LSTR_ndate.getMonth();var LSTR_Date=...
分类:
Web程序 时间:
2014-07-31 19:40:17
阅读次数:
179
调用 var b = $ajax("WebApplication1._Default.GetDataSet", ["23"]);js:/*方法全名,参数,类所在的程序集名称(当方法类所在的命名空间不是程序集名称时请传参数来)*/function $ajax(paramMethod, paramVal...
分类:
其他好文 时间:
2014-07-31 19:38:37
阅读次数:
294
函数之外声明的变量拥有 Global 作用域,只能在函数以外进行访问。 函数内部声明的变量拥有 LOCAL 作用域,只能在函数内部进行访问。 <?php
$a?=?12;
function?var_global(){
echo?$a;?//结果null
gl...
分类:
Web程序 时间:
2014-07-31 17:26:17
阅读次数:
158
publicclasstext{
publicstaticvoidmain(String[]args){
//其他类中内部类的调用内部类对象的建立
// newOuter().function();
Outer.Innerin=newOuter().newInner();
in.print();
newOuter().method();
// Outer.Innerin=newOuter.Inner();//当Inner为静态的时候调..
分类:
其他好文 时间:
2014-07-31 17:21:58
阅读次数:
235
第一页面html ${answer.content}
${answer.content}
第二循环压缩${answer.content}内容中的大图片
jQuery(function(){
setTimeout('imgLoad()'1000)//延长加载一分钟
});
function 'imgLoad(){//页面加载时循环遍历压缩adm...
分类:
Web程序 时间:
2014-07-31 17:14:25
阅读次数:
254
//
$(function () {
$("#div1").mouseover(function () {
$("#btn1").val(parseInt($("#btn1").val()) + 1)
})
//当鼠标进入div1的时候会触发mouseover事件,因为btn1...
分类:
其他好文 时间:
2014-07-31 17:11:49
阅读次数:
166
大致文件布局如下,一个html文件,一个loading.js,在loading.js中加载其他需要的js和css。
至于具体的速度的话,建议cdn或者一个域中最多加载6个js文件。在loading.js中加载js和css之前,检测是不是微信游览器,是的话,go。不是则跳转到提示。
function isWeiXin(){
var ua = window.navigator.user...
分类:
微信 时间:
2014-07-31 16:59:37
阅读次数:
376
由于代码中使用了malloc函数和字符串函数,编译时出现错误
warning: incompatible implicit declaration of built-in function ‘malloc’
warning: incompatible implicit declaration of built-in function ‘bzero’
warning: incompatib...
分类:
其他好文 时间:
2014-07-31 16:59:17
阅读次数:
554