Fork me on GitHub
A new way to explore the world


  • 首页

  • 归档

js-this 理解

发表于 2017-12-27 | 原作者 gauseen |
this 在函数定义的时候是确定不了的,只有函数执行的时候才能确定 this 的指向 一、调用函数 this 默认指向(1)正常的函数调用// 1.1.11234567891011function fn1(){ console.log(this); //window}fn1();function f ...
阅读全文 »
123
gauseen

gauseen

Dream is possible

21 日志
67 标签
github 博客园 简书 掘金 segmentfault npm
© 2020 gauseen
本站总访问量次 | 博客全站共33.6k字