关于JSthis指向的一道题(你不知道的JS)

var obj = {
    id: "awesome",
    cool: function coolFn() { 
        console.log(this.id);
    }
};
var id = "not awesome"
obj.cool(); // 酷   this指向obj
setTimeout(obj.cool, 100); // 不酷   this指向setTimeout

this谁调用   this指向谁 

原文地址:https://www.cnblogs.com/faint33/p/14653046.html