笔记琐碎

axios:html 能够用来获取json数据,有get / set两种方式:经过then(),then有两个参数,分别都是两个函数,函数的this都指向windowvue axios.get("./json/carts.json").then((res)=>{ this.products = res.data; // console.log(res); }
相关文章
相关标签/搜索