摘要: <script src="/js/axios.min.js"></script> <script> /* 参数 params 数据 .data */ axios.get("./00 data.json",{ params:{ id:1001 }}).then(function(response){ 阅读全文
posted @ 2021-11-23 10:49 六月沉 阅读(30) 评论(0) 推荐(0)
摘要: fetch('./00 data.json') .then(function (response){ //resolve console.log(response) return response.json(); }) .then(function (data) { console.log(data 阅读全文
posted @ 2021-11-23 09:49 六月沉 阅读(39) 评论(0) 推荐(0)