【wx小程序】Component 「pages/cart/cart「 does not have a method 「 handleAdd「 to handle event 「ta

VM46425:1 Component 「pages/cart/cart」 does not have a method " handleAdd" to handle event 「tap」. 這個報錯是因爲微信小程序在js文件裏面可能沒有辦法找到你在頁面裏面所綁定的那個方法名,也可能是在wxml文件裏面沒有找到: 多餘出來的空格可能讓你的事件並沒有綁定上去 在js文件裏面可能是因爲你把事件放到了
相關文章
相關標籤/搜索