iterating专题

Use compiler option ‘--downlevelIteration‘ to allow iterating of iterators 报错解决

Use compiler option '--downlevelIteration' to allow iterating of iterators 报错解决 最近在一个项目中使用 TS 做单元测试,界面报错如下: 报错分析 具体报错信息如下:Set<number> 不是数组或者字符串类型,不能使用扩展运算符。 error TS2569: Type 'Set<number>' is