我的项目中引入的是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)
})