03 2013 档案
摘要:http://www.ruanyifeng.com/blog/2010/05/object-oriented_javascript_encapsulation.html
阅读全文
摘要:http://www.cnblogs.com/Darren_code/archive/2012/01/31/questions.html
阅读全文
摘要:http://www.cnblogs.com/hongfei/archive/2011/11/29/2265377.html
阅读全文
摘要:http://xiaogai1010.blog.163.com/blog/static/137170308201211412647111/
阅读全文
摘要:http://www.blogjava.net/honeybee/articles/164008.html
阅读全文
摘要:在js逻辑运算中,0、""、null、false、undefined、NaN都会判为false,其他都为true
阅读全文
摘要:console.log( typeof 5);console.log(typeof !!5);log结果:numberboolean 看到很多代码if(!!attr),为什么不直接写if(attr);其实这是一种更严谨的写法:请测试 typeof 5和typeof !!5的区别。!!的作用是把一个其他类型的变量转成的bool类型。
阅读全文
摘要: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
阅读全文
摘要:touchTimeout&&clearTimeout(touchTimeout)等价于if(touchTimeout){clearTimeout(touchTimeout)}
阅读全文
摘要:http://baike.baidu.com/view/2945869.htmhaslayout 问题的调试与解决当网页在 IE 中有异常表现时,可以尝试激发 haslayout 来看看是不是问题所在。常用的方法是给某元素 css 设定 zoom:1。使用 zoom:1 是因为大多数情况下,它能在不...
阅读全文
摘要:http://www.cnblogs.com/losesea/archive/2012/12/20/2825763.html
阅读全文
摘要:<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(
阅读全文
摘要:http://www.cnblogs.com/qiantuwuliang/archive/2010/01/12/1645302.html
阅读全文
摘要:http://www.jb51.net/article/24101.htm
阅读全文
摘要:百度 css hackhttp://baike.baidu.com.cn/view/1119452.htm
阅读全文
摘要:http://blog.sina.com.cn/s/blog_54eeb5d901000dbs.html
阅读全文
摘要:在父元素上添加class即可最优浮动闭合方案:.clearfix{ zoom:1;} //zoom针对ie6和ie7 触发其hasLayout //以下针对除ie6和ie7之外的其他浏览器.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden;} 下面2篇文章讲了一些关于闭合浮动的内容:http://www.javascript100.com/?p=235http://homepage.yesky.com/16/2404516.s...
阅读全文
摘要:var popularCity = {'北京市':['北京市'], '上海市':['上海市'], '广东省':['广州市','深圳市','惠州市'], '天津市':['天津市'], '湖北省':['武汉市'], '陕西省':['西安市\'], '四川省':['成都市'], '辽宁省':['大连市'],'
阅读全文
摘要:往带有png图的类里加红色字的部分background-image:url(******.png)!important;background-image:url(../images/space.gif);/*space.gif 是一个透明的图片文件*/filter:progid:DXImageTransform.Microsoft.AlphaImageLoader (src="******.png", enabled=true, sizingMethod=scale);
阅读全文

浙公网安备 33010602011771号