logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

解决错误:Do not access Object.prototype method ‘hasOwnProperty‘ from target object no-prototype-builtins

问题调用 hasOwnProperty 报错:不要使用对象原型上的方法,因为原型的方法可能会被重写var person = {name: 'xiaoliao',sex: 'sex'show: function(){return this.name + '' + this.sex}}person.hasOwnProperty('sex')//Do not access Object.prototyp

#javascript#开发语言#ecmascript
到底了