2018-09-26|2018-09-26 Axios

1.简介
vue中的ajax:前端页面和后台数据的交互
1.0:vue-resource
2.0:axios 库
2.下载

npm install axios

3.http-server安装
npm install http-server -g

4.开启一个服务器:http-server
【2018-09-26|2018-09-26 Axios】html文档
首页 用户页

json文档
[ { "num":1, "pname":"apple", "price":3, "count":2, "sub":6 }, { "num":2, "pname":"pear", "price":4, "count":3, "sub":12 }, { "num":3, "pname":"banana", "price":5, "count":4, "sub":20 } ]

    推荐阅读