博客 react setState方法key设置变量跟获取王嬷嬷2020年8月12日2262 阅读文章目录1、设置state变量的值this.setstate({ [`fileList${index}`]:index})2、获取state变量的值this.state[`fileList${index}`]
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论