为了账号安全,请及时绑定邮箱和手机立即绑定

这种问题怎么修改?

这种问题怎么修改?

慕盖茨4494581 2018-08-26 14:58:56
The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype eslint报错这种问题应该怎么改?代码这样写的 for ( x in myemrList) {           arr.push(myemrList[x].hospital_id);         }
查看完整描述

1 回答

?
白猪掌柜的

TA贡献1893条经验 获得超10个赞

 for ( x of myemrList) {
    
       arr.push(myemrList[x].hospital_id);
 
          
}


查看完整回答
反对 回复 2018-08-27
  • 1 回答
  • 0 关注
  • 1208 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信