摘要: 一,this指向 ①普通函数调用,this指向window function fn(){ console.log(this) //window } fn(); ②构造函数调用,this指向实例对象 function Person(age,name){ this.age=age; this.name= 阅读全文
posted @ 2021-11-01 15:03 飞扬* 阅读(12) 评论(0) 推荐(0)