axios

vue ajax 前端页面和后台数据进行交互 json
下载:
npm install axios
访问页面:
网址:127.0.0.1:8080
安装http-server
npm install http-server -g




    
    Document


       
首页 详情页

friut.json

[
    {
        "num":1,
        "pname":"apple",
        "price":3,
        "count":4,
        "sub":12
    },
    {
        "num":2,
        "pname":"pear",
        "price":4,
        "count":5,
        "sub":20
    },
    {
        "num":3,
         "pname":"orange",
        "price":5,
        "count":6,
        "sub":30
    }
]

你可能感兴趣的:(axios)