TypeError: Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
[Vue warn]: Error in callback for immediate watcher "expand": "TypeError: Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method."
大佬你好!组件在H5上没问题,编译到真机上报这个错误怎么解决呢?
1 个回复
DCloud_UNI_LXH
这是语法报错
因为你对一个不可遍历的属性进行了遍历操作