摘要: 新版本ESlint禁止对象直接调用Object.prototype的方法,可以使用call解决问题,比如Object.hasOwnProperty.call(foo,'bar')代替foo.hasOwnProperty('bar'). 阅读全文
posted @ 2022-07-30 15:53 feixianxing 阅读(504) 评论(0) 推荐(0) 编辑