- 博客(2)
- 收藏
- 关注
原创 Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must hav
学习小程序 使用扩展运算符…解构请求到的数据对象时 就遇到了这个错误 代码大概意思是 该报错是由于不可遍历导致的 解决过程 通过 console.log(result.data.message)看一下请求到的数据内容 除了goods数组 还有另外两个数据 直接通过…result.data.message来解构所有数据是不可的 我这里只需要goods中的数据 所以通过…result.data.message.goods直接解构goods就好 错误提示也就没了 ...
2021-06-09 18:38:40 1361
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人