06 2020 档案

摘要:目录结构: index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" 阅读全文
posted @ 2020-06-30 14:28 xiawg 阅读(225) 评论(0) 推荐(0)
摘要:读书破万卷,下笔如有神;不解其中意,霸葛找上门。 -- 尽信书则不如无书 上第一个bug:babel Error: Plugin/Preset files are not allowed to export objects, only functions 原因: babel 的版本冲突 | babe 阅读全文
posted @ 2020-06-24 17:40 xiawg 阅读(354) 评论(0) 推荐(0)
摘要:项目中用到弹框嵌套的问题,发现iview的Modal在onOk事件里面打开第二个弹框时,会立即关闭第二个弹框 解决方案: 强制关闭第一个弹框后再打开第二个弹框 this.$Modal.confirm({ title: '弹框一', content: '弹框一', onOk: () => { setT 阅读全文
posted @ 2020-06-18 10:27 xiawg 阅读(1381) 评论(0) 推荐(0)
摘要:安装ESLint 安装Prettier - Code formatter 安装Vetur 配置文件如下 vscode => 首选项 => setting.json { // tab 大小为2个空格 "editor.tabSize": 2, // 100 列后换行 "editor.wordWrapCo 阅读全文
posted @ 2020-06-16 16:40 xiawg 阅读(2039) 评论(1) 推荐(0)