As I understand it, (Object.getname = object.getname), this statement returns the right operand at the end of execution object.getname, but the key is where does the right-hand operand now be? I guess because this statement is executed in the global, there will be a temporary variable in the global, it may be named temp, and temp = object.getname; In fact, both temp and object.getname point to the same function, the logic of which is function () {return this.name};
If temp is anchored to the globle, the execute this is to point to the window, if it is anchored to the object, the execution of this is pointing to object, I do not know this understanding right?
If temp is anchored to the globle, the execute this is to point to the window, if it is anchored to the object, the execution of this is pointing to object, I do not know this understanding right?
Professional JavaScript for WEB developers P226