你不知道的js--this的显示绑定

显示绑定:使用call()、apply()、bind()方法进行强制绑定。

  1、硬绑定

  

  

  

  2、API调用的上下文

  

猜你喜欢

转载自blog.csdn.net/qq_38021852/article/details/82345637