10 2013 档案

摘要:#1使用双等号给布尔变量赋值,很容易联想到 var a = b || 123; 的写法var a = b == 123;#2快速转换为布尔值!!a#3防止页面被 iframe 调用if(top !== window) { top.location.href = window.location.href;}#4将 arguments 参数组转换为真实数组function args() { return [].slice.call(arguments, 0);}args(2, 5, 0); //[2, 5, 0]#5查找数组中的最大值var arr = [2, 3, 45, ... 阅读全文
posted @ 2013-10-30 11:56 simpman 阅读(251) 评论(0) 推荐(0) 编辑
摘要:windows下,定时生成bat的名.at 14:54 cmd /c "echo net share D=d:\ > d:d.bat"^对>转义. 阅读全文
posted @ 2013-10-25 14:59 simpman 阅读(292) 评论(0) 推荐(0) 编辑
摘要:http://www.php100.com/html/webkaifa/PHP/PHPyingyong/2010/0822/5276.htmlhttp://hi.baidu.com/lei_com/item/38e61434c5510f9ab80c033bhttp://www.jb51.net/article/30485.htmhttp://bbs.chinaunix.net/forum.php?mod=viewthread&tid=635018http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=635018 阅读全文
posted @ 2013-10-22 17:35 simpman 阅读(121) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示