摘要:
setTimeout 比 setInterval 性能更好// 取代setIntervalsetTimeout(function self () { // code goes here setTimeout(self, interval);}, interval);对异步执行的大... 阅读全文
posted @ 2014-06-12 13:51
farawayfromhome
阅读(295)
评论(0)
推荐(0)
摘要:
张鑫旭:ECMAScript5介绍淘宝整理的es5-safe/********* It provides the following methods:Function.prototype.bindObject.keysArray.isArrayArray.prototype.forEachArra... 阅读全文
posted @ 2014-06-12 10:46
farawayfromhome
阅读(320)
评论(0)
推荐(0)
摘要:
使用html5标签吧!ie6、ie7、ie8不支持怎么办?它的原理是如此的简单: 1、document.createElement("ele"); // js虚拟创建一个元素,而不必添加到文档中 2、ele {display:block;} // css设定它为一个块状元素// js code ... 阅读全文
posted @ 2014-06-12 10:08
farawayfromhome
阅读(455)
评论(0)
推荐(0)

浙公网安备 33010602011771号