摘要: 函数中this的指向是不确定的,只有在函数执行时才能确定,它指向调用该函数的对象 var a = 'a' var b = 'b' function f(){ console.log(this) //window console.log(this.a) //a console.log(this.b) 阅读全文
posted @ 2019-02-12 14:35 慵懒的小猪 阅读(158) 评论(0) 推荐(0)