$.ajax({type:"get", url:"http://",
data:"name="+userid+"&password="+password,async:true,
error:function(request){alert("Connectionerror"); }, success:...
分类:
Web程序 时间:
2014-07-22 23:06:54
阅读次数:
373
1、setTimeout() setTimeout()
方法用于在指定的毫秒数后调用函数或计算表达式。具体的格式是这样的setTimeout(code,millisec)
其中code是要执行的代码或者function,而millisec是间隔的时间(毫秒数) function empt...
分类:
其他好文 时间:
2014-07-22 23:06:14
阅读次数:
243
标签:例如注意,
此时button的点击事件不会调用jquery中的show(),如果没在js文件中直接书写function show(){}的话,会报错,
提示找不到show()但是在jquery中是可以调用jquery中的 function show() {}的,即可以调用上面的红色书写的sho...
分类:
编程语言 时间:
2014-05-01 16:13:24
阅读次数:
347
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-01 16:06:46
阅读次数:
427
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
function SearchCondition(){ this.startTime = "";
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:
Web程序 时间:
2014-05-01 15:36:22
阅读次数:
414
1)高光乳胶漆,一般耐久性较好、漆膜致密,使用于对漆膜坚硬及耐久性有一定要求的地方(如人流密集处,不希望有乱涂乱抹现象处),但高光涂料反射性较强,会暴露基层不平整的缺陷。2)半光乳胶漆,光泽度比高光乳胶漆要小,一般而言,也具备较好的耐沾污性和耐擦洗性。3)丝光乳胶涂料,这一等级的光泽还包括Satin...
分类:
其他好文 时间:
2014-05-01 15:32:50
阅读次数:
934
类型转换:function ToBoolean: Boolean;function
ToInteger: Integer;function ToSingle: Single;function ToDouble: Double;function
ToExtended: Extended;class f...
分类:
其他好文 时间:
2014-05-01 15:02:01
阅读次数:
382
1.if 是单分支语句,使用格式如下: if condition ; then statement
….. fi 2.if … else 是双分支语句,使用格式如下: if condition ; then statement …. else
statement …. fi 3.if …elif…e...
分类:
其他好文 时间:
2014-05-01 13:53:51
阅读次数:
356
由于项目中用到了hash,自己实现了一个。Hash = function () { }
Hash.prototype = { constructor: Hash, add: function (k, v) { if (!this.hasO...
分类:
Web程序 时间:
2014-05-01 13:44:25
阅读次数:
444