收藏
回答

TypeError: Can't read property 'xx' of undefined?

操作系统:MacBook Pro (15-inch, 2019) 版本 11.5.2 (20G95)

开发者工具版本:1.05.2109131

出现场景:在wx:for标签中使用复选框的时候,更改渲染的列表的顺序后出现

[渲染层错误] TypeError: Cannot read property 'checked' of undefined

    at n.removeItem (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:528841)

    at n._handleItemRemoved (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:326360)

    at n.<anonymous> (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:253393)

    at i.safeCallback (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:209369)

    at i.call (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:209262)

    at i (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:212678)

    at http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:213406

    at p (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:212158)

    at Function.l.dispatchEvent (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:213258)

    at Function.l.triggerEvent (http://127.0.0.1:63017/__pageframe__/__dev__/WAWebview.js?t=wechat&s=1639182747044&v=2.15.0:2:213504)(env: macOS,mp,1.05.2110290; lib: 2.15.0)


回答关注问题邀请回答
收藏
登录 后发表内容