函数中的this指向和当前函数在哪定义的或者在哪执行的都没有任何的关系分析this指向的规律如下:[非严格模式]1、自执行函数中的this永远是window [案例1] var obj={ fn:(function(i){ //this->window return function(){ //th Read More
posted @ 2016-02-16 18:45 __sarah Views(1008) Comments(0) Diggs(0) Edit