我的项目中引入的是vue2.min.js 、 vue-resource.min.js 文件,这个我要如何设置回调函数呢?
this.$http.post(url, { keywords : [
{ 'key' : key, 'limit' : 50 }
]
},{timeout : 3000}).then(function(res) { console.log(res)
},function(err){ console.log(err)
})
凤凰求蛊
BIG阳
随时随地看视频慕课网APP
相关分类