首页 > TAG信息列表 > Iterate

ESLint for...in 报错

错误提示:for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.eslintno-restricted-syntax The body of a for-in should be wrapped in an if stateme