1. 首页
  2. 数据库
  3. 其它
  4. vue学习之vue resource请求

vue学习之vue resource请求

上传者: 2021-01-16 03:24:48上传 PDF文件 21.55KB 热度 26次
npm install 引入vue-resource包 this.$http.get(’/someUrl’) this.$http.post(’/someUrl’,{foo:‘bar’}) (1) npm install vue-resource –save引入vue-resource包 (2)在store文件的main.js中配置vue-resource // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.
下载地址
用户评论