报错:Cannot read property '__methodCaller'
发布于 6 年前 作者 okang 13214 次浏览 来自 问答

报错,打不到断点

TypeError: Cannot read property ‘__methodCaller’ of undefined

    at Function.u.getMethodCaller (WAService.js:15)

    at WAService.js:16

    at d (WAService.js:16)

    at e (appservice?t=1544000708567:2422)

    at r.registerCallback.t (appservice?t=1544000708567:2422)

    at l.forEach.t (appservice?t=1544000708567:2422)

    at Array.forEach (<anonymous>)

    at appservice?t=1544000708567:2422

    at WebSocket.s.onmessage (appservice?t=1544000708567:2422)

2 回复

如果是点击事件的话把bindtap换成catchtap试一下

 未定义,…确定一下值是否定义了.如果定义了,看一下赋值的地方,然后考虑一下是否在调用之前赋值了.我已经踩了无数次这种坑了.wx他这个周期是有一点奇怪的.并不是说一条一条的走…

回到顶部