10 2013 档案

摘要:滚轮事件是不同浏览器会有一点点区别,一个像Firefox使用DOMMouseScroll ,ff也可以使用addEventListener方法绑定DomMouseScroll事件,其他的浏览器滚轮事件使用mousewheel,下面我来给大家具体介绍。Firefox使用DOMMouseScroll,其... 阅读全文
posted @ 2013-10-30 13:22 穆乙 阅读(17708) 评论(0) 推荐(1) 编辑
摘要:function num(n){ var normal = Math.pow(5, 0.5); if (n<3){ return 1; } return 1/normal * (Math.pow(0.5 * (1 + normal),n) - Math.pow(0.5 * (1-normal),n)); } console.log(num(8)); 阅读全文
posted @ 2013-10-18 13:34 穆乙 阅读(374) 评论(0) 推荐(0) 编辑
摘要:document.body.onclick = function(e) { e = e || window.event; var target = e.target || e.srcElement, style = target.currentStyle || window.getComputedStyle(target, null), borderLeftWidth = parseInt(style['borderLeftWidth'], 10), borderTopWidth = parseInt(style['borderTopWid... 阅读全文
posted @ 2013-10-11 13:35 穆乙 阅读(1892) 评论(0) 推荐(0) 编辑

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