fetch("/api/goods")
.then(res => {
return res.json();
})
.then(response => {
console.log(response);
if (response.code == 0) {
this.poiInfo = response.data.poi_info;
}
});
axios.get("/api/goods").then(res => {
var res = JSON.parse(res.request.responseText);
this.poiInfo = res.data.poi_info;
});
原文地址:https://www.cnblogs.com/hellofangfang/p/9895513.html
时间: 2024-11-27 01:44:58