摘要: this写在不同的指向环境中,this指向的对象不一样 this指向的是谁: this永远指向其所在函数的所有者,如果没有所有者,指向window 1.this在全局函数中指向 全局函数没有所有者,所以其中的this指向window 在全局中的this,指向window 1)声明一个函数test,实 阅读全文
posted @ 2018-10-31 19:46 前端xh 阅读(103) 评论(0) 推荐(0) 编辑