摘要:
移动端分页列表,在ios上滚动加载分页时候,使用scrollTop,会引起白屏问题。 看不少文章说是使用了-webkit-overflow-scrolling: touch;引起的硬件加速问题。亲测删除问题仍然存在。 this.$nextTick(() => { window.scrollTo(0, 阅读全文
摘要:
使用 npm config set force false 可以消除。 阅读全文
摘要:
let res = "" res = res.replace(/$(?<=$).*?(?=$)$/g, `<span onclick="((params)=>{ console.log(params) })('$&')" style="color: dodgerblue;padd 阅读全文
摘要:
Remove-Item -Recurse -Force <要删除的目录> 可以简写为: rm -r -fo <要删除目录> 阅读全文
摘要:
brew install hudochenkov/sshpass/sshpass sshpass -p password ssh -p port user@xxxx.xxxx.xxxx.xxxx 阅读全文
摘要:
# 定义sedi数组 # Linux sed后面, 用 "-i" sedi=(-i) case "$(uname)" in Darwin*) # Mac sed后面, -i 后面多个空字符串 "" sedi=(-i "") esac 例:删除 device.js 包含 “export default 阅读全文
摘要:
之所以100vh在移动端出现问题,原因大致如上图,真搞不懂,为什么总是有反人类的设计出现。 经过多方参考,实测有效的方案如下: <style> :root { --vh: 1vh; } </style> <script> !(function (n, e) { function setViewHei 阅读全文
摘要:
You are currently using minified code outside of NODE_ENV 'production'. This means that you are running a slower development build of Redux. You can u 阅读全文
摘要:
Uncaught SyntaxError: The requested module '/node_modules/.vite/vue-router.js?v=2f0f3daf' does not provide an export named 'VueRouter' 将: import { Vue 阅读全文