会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
落花看风雪
博客园
首页
新随笔
联系
管理
订阅
2024年6月3日
react 报错 元素隐式具有 "any" 类型,因为类型为 "string" 的表达式不能用于索引类型 "{}"。 在类型 "{}" 上找不到具有类型为 "string" 的参数的索引签名。
摘要: interface itemType { legoBlockId: string; legoBlockNumber: string; // 其他属性... } colorListAll().then((res: { result: Array<itemType> }) => { // 使用 Reco
阅读全文
posted @ 2024-06-03 20:22 落花看风雪
阅读(16)
评论(0)
推荐(0)
编辑
公告