vue3.x报警告:Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-bui
版本号:vue/cli:4.5.12eslint: 6.7.2问题ESLint升级后如下错误:Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-bui// 错误代码for (let Key in OPTIONS) { if (OPTIONS.hasOwnProperty(Key) === true) { ... }}解决方案for (let Key in
原创
2021-11-05 18:27:41 ·
1617 阅读 ·
0 评论