摘要: this问题 在es5中,在函数定义时是无法确定this的指向的,只有在运行的时候才知道它的指向,实际上this的指向是指向调用它的那个对象 例子1 function a() { var user = '1' console.log(this.user) // undefined console.l 阅读全文
posted @ 2020-02-13 12:05 ls-lansy 阅读(367) 评论(0) 推荐(0) 编辑