![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
Zack_Peng
Talk is cheap, show me the code.
展开
-
JavaScript监听DOM节点变化
document.addEventListener('DOMNodeInserted',function(){alert(1)},false); document.addEventListener('DOMAttrModified',function(){alert(1)},false); document.addEventListener('DOMNodeRemoved',funct原创 2014-09-26 17:15:12 · 1127 阅读 · 0 评论 -
JavaScript 闭包误区
var btns = document.querySelectorAll('.btn'); // 6 elements var output = document.querySelector('#output'); var events = [1, 2, 3, 4, 5, 6]; // Case 1 for (var i = 0; i < btns.length; i++) { btns[i]原创 2014-10-27 17:04:40 · 287 阅读 · 0 评论 -
自定义滚动条样式插件Customize-scrollbar
发现网上大部分jQuery自定义滚动条样式的插件都不支持IE6, 而我们项目缺经常有类似需求, 于是自己写了个customize-scrollbar插件, 开源到了Github, 项目地址: https://github.com/ppq1991/customize-scrollbar 项目主页: http://pengpeiqiao.tk/customize-scrollbar/原创 2014-10-11 17:37:04 · 398 阅读 · 0 评论