这就是我声明和初始化 imageCount
的方式,但是出了点问题:
const [imageCount,setImageCount]: number | undefined = undefined;
我收到此错误:
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable,non-array objects must have a [Symbol.iterator]() method.