# this ## 物件下使用`this` * 傳統函式:只看呼叫的前面那個物件(不管函式如何定義) * 箭頭函式:看函式如何定義,看目前作用域的`this`,沒有自己的`this` * callback Function => simple call * 指向global * 直接在前面定義`vm=this;` **(建議做法)** ###### tags: `JavaScript`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up