上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: 关于计算首屏时间 利用performance.timing提供的数据: 通过DOMContentLoad或者performance来计算出首屏时间 // 方案一: document.addEventListener('DOMContentLoaded', (event) => { console.l 阅读全文
posted @ 2022-02-20 20:53 吃饭七分饱 阅读(1931) 评论(0) 推荐(0) 编辑
摘要: 一级路由配置方法 二级路由配置方法 location /h5 { if ($request_filename ~* .*\.(?:htm|html)$) { add_header Cache-Control "private, no-store, no-cache, must-revalidate, 阅读全文
posted @ 2022-02-14 14:19 吃饭七分饱 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 将img标签改为div 通过背景图片设置即可 阅读全文
posted @ 2022-02-13 16:07 吃饭七分饱 阅读(808) 评论(0) 推荐(0) 编辑
摘要: Vue.directive('waves', { bind (el, binding) { el.addEventListener('click', e => { const customOpts = Object.assign({}, binding.value); const opts = Ob 阅读全文
posted @ 2022-01-27 10:22 吃饭七分饱 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-01-26 16:34 吃饭七分饱 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 描边: text-shadow: #FFF9BB 1px 0 0, #FFF9BB 0 1px 0, #FFF9BB -1px 0 0, #FFF9BB 0 -1px 0; 渐变色: color: transparent; background: linear-gradient(to bottom, 阅读全文
posted @ 2022-01-21 16:38 吃饭七分饱 阅读(262) 评论(0) 推荐(0) 编辑
摘要: input, textarea { -webkit-appearance: none; /*去除input默认样式*/ } 阅读全文
posted @ 2022-01-14 14:32 吃饭七分饱 阅读(45) 评论(0) 推荐(0) 编辑
摘要: .mediaImg(@url) { background-image: url("@{url}@x1.png"); @media only screen and (-webkit-min-device-pixel-ratio:1.5), (min-resolution: 1.5dppx) { bac 阅读全文
posted @ 2022-01-08 17:01 吃饭七分饱 阅读(247) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/sandunban/p/12971037.html 阅读全文
posted @ 2021-12-16 10:30 吃饭七分饱 阅读(48) 评论(0) 推荐(0) 编辑
摘要: navigator.language获取语言在安卓和ios上有一定区别 比如ios手机设置日本语ja,阿拉伯语ar,越南语vi 在安卓上是ja-JP ar-EG vi-VN,划分的比较细 所以判断上不能使用全等 可以使用includes或者startWith来判断 阅读全文
posted @ 2021-12-14 22:15 吃饭七分饱 阅读(281) 评论(0) 推荐(1) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页