关于vue-resource中post的问题,
发布于 7 年前 作者 fantasygao 2843 次浏览 来自 问答
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利

下面这段代码在执行的时候,后台是能够拿到数据的,但是不弹出success也不弹出fail,在里面打断点,程序也不进入,不知道为什么,求大神指点。 ** this.$http.post(’/register’,postData) .then((response)=>{ alert(response.data.msg); alert(“success!”); },(response)=>{ alert(response); alert(“fail!”); })**

回到顶部