02 2022 档案
摘要:防抖v-throttle自定义指令实现 // 1.设置v-throttle自定义指令 Vue.directive('throttle', { bind: (el, binding) => { let throttleTime = binding.value; // 防抖时间 if (!throttl
阅读全文
摘要:关于计算首屏时间 利用performance.timing提供的数据: 通过DOMContentLoad或者performance来计算出首屏时间 // 方案一: document.addEventListener('DOMContentLoaded', (event) => { console.l
阅读全文
摘要:一级路由配置方法 二级路由配置方法 location /h5 { if ($request_filename ~* .*\.(?:htm|html)$) { add_header Cache-Control "private, no-store, no-cache, must-revalidate,
阅读全文
摘要:将img标签改为div 通过背景图片设置即可
阅读全文

浙公网安备 33010602011771号