微信小程序bindtap事件绑定报错does not have a method “xxxx“ to handle event “tap“
微信小程序bindtap事件绑定莫名其妙报错
错误代码:Component “components/noteCard/index” does not have a method “checkDetails” to handle event “tap”.
<view bindtap="checkDetails" class="evaluate btn">查看详情</view> |
const app = getApp() |
这个bindtap看起来完全没问题,但是就是无法实现跳转且报警告,解决方法如下:把本地设置中的“将JS编译成ES5”取消勾选再勾选回去就行
,具体原因未知。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 个人学习测试!