Let the storm money come!

随笔分类 -  JS

一些我可以常用的js脚本
摘要:function.call( obj, parameter); 阅读全文
posted @ 2010-01-09 19:25 精密~顽石 阅读(159) 评论(0) 推荐(0) 编辑
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--varobj=document.getElementById("main");varitems=["click","keypress"];for(vari=0;i<items.length;i+... 阅读全文
posted @ 2010-01-09 18:25 精密~顽石 编辑
摘要:判断类型的时候,常用的一种判断方法是 if ( str.constructor == Array ), 也就是用 constructor 这个东西,判断。 阅读全文
posted @ 2010-01-09 16:31 精密~顽石 阅读(131) 评论(0) 推荐(0) 编辑
摘要:call(obj, realParam) 这里的第一个参数是带入的一个对象,并不是方法里的第一个参数。 相比 apply(obj, arguments) ,apply 允许带很多个参数,这点比 call 灵活。 阅读全文
posted @ 2009-12-07 16:45 精密~顽石 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
在通往地狱的路上,加班能使你更快到达。
点击右上角即可分享
微信分享提示