ypeError: wh.rv is not a function
发布于 6 年前 作者 jing75 10023 次浏览 来自 问答

在小程序的一个聊天页面中,分享聊天记录,通过选中checkbox,然后进入另一个页面进行绘图,绘图完毕返回页面

这时候再次操作checkbox就会发现所有的setdata都失效了。报错信息如下:

wh.rv is not a function; [Component] Event Handler Error @ pages/chatPage/chat#bound checkboxChange

TypeError: wh.rv is not a function

    at $gdc (http://127.0.0.1:43893/appservice/appservice?t=1555924865299:963:6)

    at http://127.0.0.1:43893/appservice/appservice?t=1555924865299:1636:52

    at S (http://127.0.0.1:43893/appservice/__dev__/WAService.js:1:863198))

    at e.value (http://127.0.0.1:43893/appservice/__dev__/WAService.js:1:865659))

    at a._updateCb (http://127.0.0.1:43893/appservice/__dev__/WAService.js:1:813952))

    at a.doUpdates (http://127.0.0.1:43893/appservice/__dev__/WAService.js:1:822191))

    at n.D.setData (http://127.0.0.1:43893/appservice/__dev__/WAService.js:1:817879))

    at z.

(http://127.0.0.1:43893/appservice/dev/WAService.js:1:847105)

    at z.updateCheckBox (http://127.0.0.1:43893/appservice/pages/chatPage/chat.js:241:10)

    at z.checkboxChange (http://127.0.0.1:43893/appservice/pages/chatPage/chat.js:225:86)

不知道哪位同学碰到过?帮忙给点意见,谢谢

2 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

已经解决了。是wh这个全局变量的缘故

回到顶部