摘要: 注意:函数定义无法确定this指向,函数执行的才可以,因此需要知道函数的调用方式。 1、普通函数调用 var a='hello world'; function f1(){ console.log(this);//window console.log(this.a);//hello world } 阅读全文
posted @ 2021-04-07 15:41 sct春天 阅读(129) 评论(0) 推荐(0)