2015年12月3日

摘要: js 里函数调用有4种模式:方法调用、正常函数调用、构造器函数调用、apply/call 调用。同时,无论哪种函数调用除了你声明时定义的形参外,还会自动添加2个形参,分别是 this 和 arguments。这里你既然问 this,那么就只谈 this。this 的值,在上面4中调用模式下,分别会绑... 阅读全文
posted @ 2015-12-03 17:35 小豆角 阅读(767) 评论(0) 推荐(0) 编辑
摘要: 参考:http://segmentfault.com/a/1190000000348228http://segmentfault.com/q/1010000000442042问题:(function(){function a(){ alert("a");}})();这里的(function(){... 阅读全文
posted @ 2015-12-03 17:05 小豆角 阅读(310) 评论(0) 推荐(0) 编辑

导航