微信小程序函数无法运行或者出现报错“Component “页面路径“ does not have a method “ 方法名“ to handle event “tap“.”
微信小程序函数无法运行或者出现报错“Component "页面路径" does not have a method " 方法名" to handle event "tap".”
·
Component "页面路径" does not have a method " 方法名" to handle event "tap".”
对于这个问题,我查阅了好多,有的说是bindtap的函数名多了空格,有的说需要放在methods里面,尝试之后都不可以,最后查找到解决方式解决了上面的问题,但是最后所有函数都写了之后,只有第一个函数可以用,尝试之后发现解决问题一样见下:
第一步点击设置,软后选择项目设置:
然后把下图的勾选去掉:
然后就可以啦!!!!
一起加油!!!!
更多推荐
已为社区贡献2条内容
所有评论(0)