Egret社区
Wondering why JavaScript’s “this” is pointing to that, when you thought it was pointing over there? Confused by the seemingly arbitrary value of “this” ... if it even has a value?
You’re not alone.
JavaScript’s context variable is one of the most frustrating and confusing bits of important information that you need to understand. But don’t worry – the rules for managing “this” are easier to understand than most people think. It only takes a little knowledge, a few examples to work with, and a willingness to travel the path.

5条规则教你掌握JavaScript中的this,35页精辟文档。(大猫本人5美金自购)

five_rules_master_jsthis.jpg

游客,如果您要查看本帖隐藏内容请回复


分享到 :
4 人收藏

241 个回复

倒序浏览
acdmin  登堂入室 | 2014-7-30 13:37:07
哦?哦?哦?哦?
egfan  初学乍练 | 2014-7-30 16:39:32
等不及要看看
csujin  圆转纯熟 | 2014-7-30 17:57:21
5条,胡了
icoolei  初学乍练 | 2014-7-30 21:20:44
这个很有用啊
shinji  圆转纯熟 | 2014-8-10 00:58:06
嗯嗯正需要这个!好不容易AS3结束了this满天飞的AS2时代,好么现在玩上JS了满世界的this。。。感觉没有这些this的话代码量都能去掉1/3。。。
lookdczar  登堂入室 | 2014-8-10 11:14:21
很不错的样子
flyx1215  初学乍练 | 2014-8-11 10:21:14
thankyouverymuch
feixiang2835  初学乍练 | 2014-8-11 10:46:51
看看学习下哈
Kevin  登堂入室 | 2014-8-11 11:11:17
谢谢分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部