vue
hfdbjyfv
这个作者很懒,什么都没留下…
展开
-
vue调用vue-echarts
1.vue安-echarts装cnpm install echarts -S2.将echarts引入vue入口js文件main.js中import echarts from 'echarts'//为Vue的所有实例添加公共方法echartsVue.prototype.$echarts = echarts3.在调用组件中使用...原创 2018-12-13 11:26:15 · 1321 阅读 · 0 评论 -
phpstudy环境配置网站js的跨域调用,处理vue调用api的问题,头部请求模块开启
1.在phpstudy的配置文件httpd-conf,在头部添加Header set Access-Control-Allow-Origin * 2.找到这行#LoadModule headers_module modules/mod_headers.so把#注释符去掉即可,我的是在115行.https://blog.csdn.net/Bright2017/article/de...转载 2018-12-13 14:32:44 · 1477 阅读 · 0 评论 -
vue使用axios调用api接口
1.使用axios插件cnpm intsll axios2.引入插件import axios from 'axios'3.使用插件 mounted: function () { axios.get('http://www.yjtj.com/phalapi/public/?service=App.Examples_CURD.GetList&typeid=11')...原创 2018-12-13 16:43:28 · 6391 阅读 · 0 评论 -
vue通过axios调用api获取的参数,赋值给定义参数
不要忘了引入axios插件原创 2018-12-13 17:22:26 · 3522 阅读 · 1 评论