未被引用的js里面的方法报错?
发布于 4 年前 作者 ming23 10978 次浏览 来自 官方Issues

运维中心报错undefined is not an object (evaluating ‘wx.sccEngine.leaveRoom’);at “pages/index/index” page lifeCycleMethod onHide function

onHide方法里面放的是一个上传用户统计的,wx.sccEngine.leaveRoom这个方法是在一个未被使用也未被引用的js文件里面,这个js文件相对于项目来说是可删除的

1 回复

也会加载到

回到顶部