会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sarah
CnBlogs
Home
New Post
Contact
Admin
Subscription
2016年2月16日
Js中的this指向问题
函数中的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
公告