如何從愛可信調用一個函數然後下面是我的代碼是不工作axios內部的函數調用呢?
handleClick(userid){
axios.get(
"http://localhost:4000/user/"+userid+"/items.json")
.then(function (response) {
dispatch(this.buildhtml.bind(response))
})
}
buildhtml(response){
console.log("m called")
}
buildhtml功能不執行!任何想法
沒有工作:( – ashwintastic
你可以分享一次你的組件嗎?創建一個小提琴並共享鏈接? –
請檢查此鏈接[fiddle鏈接](https://jsfiddle.net/ob1c0aye/1/) – ashwintastic