-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScript: 使用ES6改变this指向 #200
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JavaScript: 使用ES6改变this指向
call
fn.call(this的新指向, param1,param2)
apply
fn.apply(this的新指向, [param1,param2])
bind
const newFn = oldFn.bind(this的新指向)
区别
The text was updated successfully, but these errors were encountered: