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