Element implicitly has an ‘any’ type because index expression is not of type ‘number’

就是上面的代码报的错:

解决:

给个any类型就行

[x as any]

发表评论