![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
Dragon的记录
老子一拳把你打成象拔蚌。
展开
-
(转) JS禁用鼠标滚轮事件
function disabledMouseWheel() { if (document.addEventListener) { document.addEventListener('DOMMouseScroll', scrollFunc, false); }//W3C window.onmousewheel = document.onmousewheel =转载 2018-01-08 17:36:09 · 6314 阅读 · 0 评论 -
(原) js 算法 四舍五入
//除法 function accDiv(arg1,arg2){ var t1=0,t2=0,r1,r2; try{t1=arg1.toString().split(".")[1].length}catch(e){} try{t2=arg2.toString().split(".")[1].length}catch(e){} with(Math){ ...原创 2018-03-28 10:42:29 · 424 阅读 · 0 评论