consthasOwnProperty=Object.prototype.hasOwnPropertyexportfunctionhasOwn (obj, key) {returnhasOwnProperty.call(obj, key);} 为什么要这样通过call来调用hasOwnProperty方法,而不是直接调用?我觉得主要是担心obj对象上会重写hasOwnProperty方法,从而影响hasOwn得到的结果。