随笔分类 - js
摘要:事件被触发、n秒内只执行一次事件处理函数 function throttle(fn,time){ var t = null, begin = new Date().getTime(), res; var throttled = function(){ var _this = this, nowDat
阅读全文
摘要:n秒内只要你触发事件,就重新计数。 持续触发 事件处理函数的程序将永远不能被执行 function debounce(fn,time,trggleNow){ var t = null, res; var debounced = function(){ var _this = this, //保存th
阅读全文
摘要:new FileReader();
file.readAsDataURL(myF);
file.onload = function(e){}
阅读全文
摘要:webpack的安装、配置打包的入口与出口、自动打包、自动生成预览页面
阅读全文
摘要:js自动调试rem尺寸:html.style.fontSize = width/750*100+'px';
阅读全文
摘要:银行卡、手机号、终端号,进行脱敏。银行卡前4后3,手机号前3后4,终端号前4后4。
阅读全文
摘要:window.location 获取连接的 一些操作。
阅读全文