微信小程序提示跳轉頁面報錯,解決方法

報錯提示:VM264:1 Component "pages/index/index" does not have a method "handleClick" to handle event "tap" 可能是你自己定義了組件: 我這裏就是自定義了組件(Component) 那麼如何自定義組件呢? 首先在json文件中寫入一下代碼即可: 然後就可以用了,那麼爲什麼跳轉頁面會出現錯誤呢? 自定的組件
相關文章
相關標籤/搜索