随笔分类 -  js

摘要:用于封装js兼容性的函数 阅读全文
posted @ 2021-04-09 21:32 火烧云Z 阅读(40) 评论(0) 推荐(0) 编辑
摘要:事件被触发、n秒内只执行一次事件处理函数 function throttle(fn,time){ var t = null, begin = new Date().getTime(), res; var throttled = function(){ var _this = this, nowDat 阅读全文
posted @ 2021-04-09 21:30 火烧云Z 阅读(43) 评论(0) 推荐(0) 编辑
摘要:n秒内只要你触发事件,就重新计数。 持续触发 事件处理函数的程序将永远不能被执行 function debounce(fn,time,trggleNow){ var t = null, res; var debounced = function(){ var _this = this, //保存th 阅读全文
posted @ 2021-04-09 21:29 火烧云Z 阅读(59) 评论(0) 推荐(0) 编辑
摘要:配置 webpack 阅读全文
posted @ 2021-02-28 18:41 火烧云Z 阅读(95) 评论(0) 推荐(0) 编辑
摘要:new FileReader(); file.readAsDataURL(myF); file.onload = function(e){} 阅读全文
posted @ 2021-01-29 22:23 火烧云Z 阅读(250) 评论(0) 推荐(0) 编辑
摘要:vue单文件与webpack结合 阅读全文
posted @ 2021-01-14 22:31 火烧云Z 阅读(75) 评论(0) 推荐(0) 编辑
摘要:loader加载器 阅读全文
posted @ 2021-01-13 22:46 火烧云Z 阅读(41) 评论(0) 推荐(0) 编辑
摘要:webpack的安装、配置打包的入口与出口、自动打包、自动生成预览页面 阅读全文
posted @ 2021-01-13 21:34 火烧云Z 阅读(91) 评论(0) 推荐(0) 编辑
摘要:js自动调试rem尺寸:html.style.fontSize = width/750*100+'px'; 阅读全文
posted @ 2021-01-05 12:56 火烧云Z 阅读(64) 评论(0) 推荐(0) 编辑
摘要:js处理日期时间格式 阅读全文
posted @ 2021-01-03 15:49 火烧云Z 阅读(184) 评论(0) 推荐(0) 编辑
摘要:js保留数字几位小数 阅读全文
posted @ 2021-01-03 15:48 火烧云Z 阅读(707) 评论(0) 推荐(1) 编辑
摘要:input输入框进行限制 阅读全文
posted @ 2021-01-03 15:46 火烧云Z 阅读(191) 评论(0) 推荐(0) 编辑
摘要:银行卡、手机号、终端号,进行脱敏。银行卡前4后3,手机号前3后4,终端号前4后4。 阅读全文
posted @ 2021-01-03 15:42 火烧云Z 阅读(991) 评论(0) 推荐(0) 编辑
摘要:各种的前端工具插件 阅读全文
posted @ 2020-12-03 16:25 火烧云Z 阅读(122) 评论(0) 推荐(0) 编辑
摘要:window.location 获取连接的 一些操作。 阅读全文
posted @ 2020-08-11 09:06 火烧云Z 阅读(1060) 评论(0) 推荐(0) 编辑

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