1. consthasOwnProperty=Object.prototype.hasOwnProperty
    2. exportfunctionhasOwn (obj, key) {
    3. returnhasOwnProperty.call(obj, key);
    4. }

    为什么要这样通过call来调用hasOwnProperty方法,而不是直接调用?
    我觉得主要是担心obj对象上会重写hasOwnProperty方法,从而影响hasOwn得到的结果。