-1
this.$http.post('../idea/comment'+idea_id, newResponse).then((response) => {
//do something
}, (response) => {
});
//get returned comment
//update DOM
},
}
});
所有获取请求运行良好,但我不断收到此错误时,尝试发布请求。获取TypeError:t.replace是不是一个函数Vue.js
既然你已经在你的代码中没有更换,你不能向我们展示了正确的块。 – Devon
尝试将URL更改为'idea/comment /'+ idea_id – Nora