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
VM9892:1 thirdScriptError
Cannot read property 'apply' of undefined; [Component] Event Listener Error @ components/Cell/index#(anonymous)
TypeError: Cannot read property 'apply' of undefined
at z.obj.(anonymous function) [as gotoChooseCoupon] (http://127.0.0.1:36913/appservice/npm/@tarojs/taro-weapp/dist/index.js:3420:35)
at z.P.u.(anonymous function).(anonymous function).u.addListener.capture (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:873213)
at r.safeCallback (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:718316)
at r.call (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:718209)
at n (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:721206)
at http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:721788
at p (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:720753)
at Function.c.dispatchEvent (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:721685)
at Function.c.triggerEvent (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:721888)
at n.w.triggerEvent (http://127.0.0.1:36913/appservice/__dev__/WAService.js:1:798212)
目前触发一个事件,而事件处理函数未定义时,报错不太友好,希望能直接提示:事件处理函数 this.XXX 未定义。
例如:
小程序报错:
点进去发现是调用事件处理函数前未判断导致的:
搜索发现各个平台均是如此
Search · return scope[eventHandlerName].apply(callScope, realArgs);
The text was updated successfully, but these errors were encountered: