摘要:
第一种方法: package.json中devDependencies对象添加 "@babel/compat-data": "7.9.0" 第二种方法: npm install -D babel-loader @babel/core @babel/preset-env webpack 再启动 阅读全文
posted @ 2020-04-27 22:46
吴小明-
阅读(10947)
评论(3)
推荐(0)
摘要:
下载插件:npm install babel-plugin-transform-remove-console --save-dev babel.config.js中:(添加红字部分,表示仅在发布环境才去掉console.log) // 项目发布阶段需要用到的babel插件 const prodPlu 阅读全文
posted @ 2020-04-27 19:32
吴小明-
阅读(5738)
评论(0)
推荐(0)
摘要:
安装:npm install --save nprogress 引入:(在axios封装文件中引入) import NProgress from 'nprogress' import 'nprogress/nprogress.css' 开启和关闭:(分别在axios的请求拦截器和响应拦截器中使用st 阅读全文
posted @ 2020-04-27 17:52
吴小明-
阅读(5522)
评论(0)
推荐(0)
摘要:
1、安装插件:npm install echarts --save 2、引入echarts import echarts from 'echarts' 3、为ECharts准备一个具备大小(宽高)的Dom <div id="main" style="width: 600px;height:400px 阅读全文
posted @ 2020-04-27 17:23
吴小明-
阅读(192)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-27 15:28
吴小明-
阅读(6841)
评论(1)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-27 15:13
吴小明-
阅读(372)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-27 15:03
吴小明-
阅读(773)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-27 15:01
吴小明-
阅读(656)
评论(0)
推荐(0)
摘要:
可以通过v-model双数据绑定取值,也可以通过ref取值: 阅读全文
posted @ 2020-04-27 14:56
吴小明-
阅读(11376)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2020-04-27 14:37
吴小明-
阅读(4837)
评论(0)
推荐(0)