CountPrice:function(){
// GET /someUrl
this.$http.get('CardboardPrice.json').then((response) => {
alert(1);
}, (response) => {
// error callback
});
}
浏览器支持本地ajax。可以弹出1。
问:获取的json的如何进行处理,response 只显示对象。
CountPrice:function(){
// GET /someUrl
this.$http.get('CardboardPrice.json').then((response) => {
alert(1);
}, (response) => {
// error callback
});
}
浏览器支持本地ajax。可以弹出1。
问:获取的json的如何进行处理,response 只显示对象。
11 回答1.3k 阅读
4 回答573 阅读✓ 已解决
3 回答860 阅读
1 回答858 阅读✓ 已解决
1 回答1.1k 阅读
2 回答774 阅读
2 回答622 阅读
官方有比较详细的对
response的介绍,https://github.com/vuejs/vue-...你的问题我不太明白,猜测应该是如何获取响应的
data吧,取response.body就行。