- 博客(1)
- 收藏
- 关注
原创 关于this作用域的一些记录
关于this作用域的一些记录一、全局的this(浏览器)console.log(this.document === document) //trueconsole.log(this === window) //truethis.a = 37;console.log(window.a); //37二、一般函数的this(浏览器)function f1(){ ...
2019-04-16 14:06:20 117
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人