this

 指的是当前对象

 关键词,不能作为变量名

 只能读不能写,他的值只能用,不能修改

函数外用

 this指向的是window

函数内用

 函数是被直接调用的,this指向window

 被事件所调用,并以赋值的形式出现,谁调用了函数,this就指向谁

posted on 2016-08-17 18:25  7-Eleven  阅读(189)  评论(0)    收藏  举报