
函數原型 call、apply、bind 方法可以用來改變 this 指向的對象,bind 和其他兩個方法 call、apply 較不同,call、apply 會直接執行函式,bind 只是將 this 綁定到函式內,並不會實際執行,這樣說明還是有點難懂,那就接下去看看吧。
函數原型 call、apply、bind 方法可以用來改變 this 指向的對象,bind 和其他兩個方法 call、apply 較不同,call、apply 會直接執行函式,bind 只是將 this 綁定到函式內,並不會實際執行,這樣說明還是有點難懂,那就接下去看看吧。
Update your browser to view this website correctly. Update my browser now