uniapp发布成APP,手机数据线调试,进入某一个页面,报错 'length' of undefined报错或者TypeError: Invalid attempt to destructure non-iterable。
报错代码:
解决:
方案:
在这个报错的页面全局搜索 .length,在所有用到的地方在加一个判断,当这个值存在才去点length。
uniapp发布成APP,手机数据线调试,进入某一个页面,报错 'length' of undefined报错或者TypeError: Invalid attempt to destructure non-iterable。
报错代码:
解决:
方案:
在这个报错的页面全局搜索 .length,在所有用到的地方在加一个判断,当这个值存在才去点length。