发布时间:2013-08-18 21:14:40
JavaScript凌厉开发-Ext详解与实践(含光盘) http://www.mailajiao.com/item.php?id=6898468150 JavaScript完全学习手册(附光盘) &.........【阅读全文】
发布时间:2013-07-22 18:22:03
http://www.w3schools.com/jsref/jsref_regexp_test.aspSyntaxRegExpObject.test(string)JS中正则表达式pattern写在两个顺斜杠之间 .ExampleDo a global search, and test for "Hello" and "W3Schools" in a string:var str="Hello world!";//look for "Hello"var patt=/Hello.........【阅读全文】
发布时间:2013-07-02 17:42:58
参考:http://stackoverflow.com/questions/9229645/remove-duplicates-from-javascript-array方法一:点击(此处)折叠或打开a = ["Mike","Matt","Nancy","Adam","Jenny","Nancy","Carl",1,2,3,1,2,3,4,5,6,7,8,1,2,3];b = {};for (var i = 0; i < a.length; i++.........【阅读全文】
发布时间:2012-12-18 15:21:28
Microsoft模型:给element绑定click事件 点击(此处)折叠或打开element.attachEvent('onclick',doSomething); W3C模型:给element绑定click事件 点击(此处)折叠或打开element.addEventListener('click',doSomething,false);W3C模型的关键是addEventListener()方法。它有3个参数: the event type, the function to be executed and a boolean (true or false) .&nb......【阅读全文】