上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: http://www.blogjava.net/honeybee/articles/164008.html 阅读全文
posted @ 2013-03-31 14:53 mabel_on_line 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true 阅读全文
posted @ 2013-03-28 16:12 mabel_on_line 阅读(154) 评论(0) 推荐(0) 编辑
摘要: console.log( typeof 5);console.log(typeof !!5);log结果:numberboolean 看到很多代码if(!!attr),为什么不直接写if(attr);其实这是一种更严谨的写法:请测试 typeof 5和typeof !!5的区别。!!的作用是把一个其他类型的变量转成的bool类型。 阅读全文
posted @ 2013-03-28 16:11 mabel_on_line 阅读(799) 评论(0) 推荐(0) 编辑
摘要: http://jishuziyuan.com/archive/shaenxing2/6341238.html<script>if(1 == true){ console.log('1.ture');}else{ console.log('1.false'); }if(1===true){ console.log('2.true'); }else{ console.log('2.false'); }</script>log结果:1.ture 2.false实例http://hi.baidu.com/songz 阅读全文
posted @ 2013-03-28 15:56 mabel_on_line 阅读(292) 评论(0) 推荐(0) 编辑
摘要: touchTimeout&&clearTimeout(touchTimeout)等价于if(touchTimeout){clearTimeout(touchTimeout)} 阅读全文
posted @ 2013-03-28 15:46 mabel_on_line 阅读(257) 评论(0) 推荐(0) 编辑
摘要: http://baike.baidu.com/view/2945869.htmhaslayout 问题的调试与解决当网页在 IE 中有异常表现时,可以尝试激发 haslayout 来看看是不是问题所在。常用的方法是给某元素 css 设定 zoom:1。使用 zoom:1 是因为大多数情况下,它能在不... 阅读全文
posted @ 2013-03-27 16:25 mabel_on_line 阅读(155) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/losesea/archive/2012/12/20/2825763.html 阅读全文
posted @ 2013-03-27 16:14 mabel_on_line 阅读(97) 评论(0) 推荐(0) 编辑
摘要: <p>1111</p><p>2222</p><p>3333</p>点击每一个 p 标签之后 会显示该标签在整个数组中的index值,所可以实现的方法有多种,以下为常见的几种:一、window.onload = function(){ var pAry = document.getElementsByTagName("p"); for( var i=0; i<pAry.length; i++ ) { pAry[i].onclick = function(arg) { return function( 阅读全文
posted @ 2013-03-25 16:15 mabel_on_line 阅读(109) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/qiantuwuliang/archive/2010/01/12/1645302.html 阅读全文
posted @ 2013-03-25 15:43 mabel_on_line 阅读(110) 评论(0) 推荐(0) 编辑
摘要: http://www.jb51.net/article/24101.htm 阅读全文
posted @ 2013-03-25 15:42 mabel_on_line 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页