JS function function & arrow pointing in who this in the end?

JS who in the end in this point?

function: Who calls who point

var ID = '654321'
 var Handler = {   
    ID: '123456' ,   
    the init: function () {   
        the console.log ( the this .id) 
    } 
};   
var ZY = { 
    ID: '9527' 
} 
handler.init.call (ZY ) // 9527 call is to replace the caller of the function

 

Guess you like

Origin www.cnblogs.com/yangai/p/11084269.html