摘要: 一、webpack中设置跨域: webpack提供了配置代理的方法解决跨域: 1、在vue-cli项目中打开webpack.dev.cof.js,如下: devServer: { clientLogLevel: 'warning', historyApiFallback: { rewrites: [ 阅读全文
posted @ 2019-05-18 10:10 Samve 阅读(1094) 评论(0) 推荐(0) 编辑
摘要: 一、安装echarts: cnpm i echarts -D 二、在vue-cli的main.js文件中引用echarts: import charts from 'echarts' Vue.prototype.$echarts = charts 三、echarts详细代码: echarts.vue 阅读全文
posted @ 2019-05-18 09:54 Samve 阅读(2060) 评论(0) 推荐(0) 编辑
摘要: 1、原因:placeholder是h5的新属性,IE10以前的浏览器(8、9)不支持此属性。 2、解决方法:jQuery三方插件 jquery-placeholder 3、快速开始: <!DOCTYPE html> <html> <head> <title>test</title> <script 阅读全文
posted @ 2019-05-18 07:35 Samve 阅读(323) 评论(0) 推荐(0) 编辑