摘要:
'??' Nullish coalescing Operator 是ECMAScript 2019年的已被采纳的提案,需要 Node.js 15以上才支持。 因此需要升级本地的 Node.js 版本,推荐使用nvm管理本地 Node.js 版本。 参考资料 1、ECMAScript已经完成的提案 2 阅读全文
摘要:
代码: /** * 读取文件 * @param {string} path - 文件的绝对路径 */ function readFile(path) { const filePath = plus.io.convertLocalFileSystemURL(path); const fileInput 阅读全文
摘要:
报错的原因: 本地分支名和标签tag名相一致。 阅读全文
摘要:
为什么在 Vue 中使用 ECharts 时图表显示异常? Vue3,中使用 reactive 及 ref 会导致 ECharts 的对象实例被代理成为响应式对象,影响 ECharts 对内部属性的访问,可能会导致图表无法正确显示等一系列意外问题,且会由于深度监听而极大地降低图表展示性能。 解决方案 阅读全文
摘要:
文件后缀与HTTP文件内容流对照表: Extension MIME Type .doc application/msword .dot application/msword .docx application/vnd.openxmlformats-officedocument.wordprocess 阅读全文
摘要:
1. Form组件的 ref和model属性值必须不一致才行。 阅读全文
摘要:
在 VSCODE 使用 git commit --amend 的时候报错E:325 解决办法: 删除.git文件夹里面的.COMMIT_EDITMSG.swp文件 阅读全文
摘要:
https://juejin.cn/post/6855526489904349198 阅读全文
摘要:
问题描述: 在初始化项目的时候出现这个报错 npm ERR! code ENOLOCAL npm ERR! Could not install from "" as it does not contain a package.json file. 解决方案: npm install -g npm 阅读全文
摘要:
直入正题,直接在Vue-CLI的vue.config.js文件devServer字段配置: // 证书的密码 pfxPassphrase: 'xxxx', // when develop with https need to provide server certificate to browser 阅读全文