本篇引用至 What-is-THIS-in-JavaScript ,主要為自己紀錄加深印象使用
This的定義
ECMAScript 對於 This 的定義為:「The this keyword evaluates to the value of the ThisBinding of the current execution context.」
MDN 對於 This 的定義為:
「In most cases, the value of this is determined by how a function is called.」
在大多數的情況下,this的值會由該 function 當時如何被呼叫而決定的