You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thirdScriptError
Cannot read property 'apply' of undefined; [Component] Event Handler Error @ components/XcTabs/index#(anonymous)
TypeError: Cannot read property 'apply' of undefined
at ye.obj.(anonymous function) [as handleBarClick] (http://127.0.0.1:53785/appservice/npm/@tarojs/taro-weapp/dist/index.js:1796:35)
at Object.r.safeCallback (WAService.js:1:857898)
at WAService.js:1:1048426
at r (WAService.js:1:982076)
at WAService.js:1:982184
at WAService.js:1:253666
at e (http://127.0.0.1:53785/appservice/appservice?t=1561446687534:1499:20972)
at r.registerCallback.t (http://127.0.0.1:53785/appservice/appservice?t=1561446687534:1499:21157)
at l.forEach.t (http://127.0.0.1:53785/appservice/appservice?t=1561446687534:1499:1581)
at Array.forEach (<anonymous>)
检查生成的文件发现,function bar 没有被映射到class上。
暂时时只能用下面这种方式解决。
<ViewonClick={()=>{bar('hello')}}><View>
系统信息
Taro v1.3.4
The text was updated successfully, but these errors were encountered:
问题描述
Taro v1.3.4 hooks events在小程序端不支持.bind(xxx)
复现步骤
报错信息
检查生成的文件发现,function bar 没有被映射到class上。
暂时时只能用下面这种方式解决。
系统信息
The text was updated successfully, but these errors were encountered: