當將對象方法賦值給其他變量後調用,this可能丟失,導致讀取屬性失敗。
var func = jane.display.bind(jane); func();
在嚴格模式下,this丟失更明顯,因此需要特別注意函數調用方式。