eslint-disable-next-line no-prototype-builtins

permissionsList.hasOwnProperty(permission)

改为

 Object.prototype.hasOwnProperty.call(permissionsList, permission)

你可能感兴趣的:(#,javascript,原型模式,javascript,前端)