随笔分类 - 技术
摘要:'??' 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
阅读全文
摘要:问题描述: 在初始化项目的时候出现这个报错 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
阅读全文
摘要:一定要加上callback() 表单验证规则中的 prop 必须与 :model 绑定的字段一致
阅读全文
摘要:(不定期更新!!!) 说明:常见的事件跨浏览器兼容。 内容速览: 添加事件处理函数 addHandler 移除事件处理函数 removeHandler 获取event对象 getEvent 事件的目标 getTarget 取消事件默认行为 preventDefault 阻止事件冒泡 stopProp
阅读全文

浙公网安备 33010602011771号