由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - You Don’t Know JS: this & Object Prototypes
相关主题
Help - C++ Debug Assertion Failed有没有人同时用 C++, C#, OBJECTIVE-C,JAVA 的?
问一下这个cast在java里是怎么work的请问个javascript object 怎么访问属性的问题
java ArrayList 一问请教一个javascript 的问题
prototype和abstract factory的区别卫东 问你 不会Java 如何生存?
请教一个javascript的heap的问题。 (转载)请教个JAVA的小问题
javascript里面object和length 1的array[合集] C++ question -- how to save objects
本版被骂的最多的三个语言弱问一下
现在做iSO开发是不是不要学Objective-C, 而是直接学Swift?return value of a python function...
相关话题的讨论汇总
话题: js话题: objects话题: javascript话题: prototypes话题: object
进入Programming版参与讨论
1 (共1页)
r*****3
发帖数: 143
1
No matter how much experience you have with JavaScript, odds are you don’t
fully understand the language. This concise, in-depth guide takes you inside
JavaScript’s this structure and object prototypes. You’ll learn how they
work and why they’re integral to behavior delegation—a design pattern in
which objects are linked, rather than cloned.
Like other books in the “You Don’t Know JS” series, this and Object
Prototypes dives into trickier parts of the language that many JavaScript
programmers simply avoid. Armed with this knowledge, you can become a true
JavaScript master.
With this book you will:
Explore how the this binding points to objects based on how the function is
called
Look into the nature of JS objects and why you’d need to point to them
Learn how developers use the mixin pattern to fake classes in JS
Examine how JS’s prototype mechanism forms links between objects
Learn how to move from class/inheritance design to behavior delegation
Understand how the OLOO (objects-linked-to-other-objects) coding style
naturally implements behavior delegation
Download:
http://www.uploadable.ch/file/9vHhATg67w58
j*a
发帖数: 14423
2
确实有很多不懂的在这里有解说

t
inside
they

【在 r*****3 的大作中提到】
: No matter how much experience you have with JavaScript, odds are you don’t
: fully understand the language. This concise, in-depth guide takes you inside
: JavaScript’s this structure and object prototypes. You’ll learn how they
: work and why they’re integral to behavior delegation—a design pattern in
: which objects are linked, rather than cloned.
: Like other books in the “You Don’t Know JS” series, this and Object
: Prototypes dives into trickier parts of the language that many JavaScript
: programmers simply avoid. Armed with this knowledge, you can become a true
: JavaScript master.
: With this book you will:

1 (共1页)
进入Programming版参与讨论
相关主题
return value of a python function...请教一个javascript的heap的问题。 (转载)
问问开发ios的,有用C++来组织代码的么?javascript里面object和length 1的array
FMP 3.0 Mitbbs 首发 — 求建议求反馈本版被骂的最多的三个语言
怎么检测c++ smart pointer的循环引用?现在做iSO开发是不是不要学Objective-C, 而是直接学Swift?
Help - C++ Debug Assertion Failed有没有人同时用 C++, C#, OBJECTIVE-C,JAVA 的?
问一下这个cast在java里是怎么work的请问个javascript object 怎么访问属性的问题
java ArrayList 一问请教一个javascript 的问题
prototype和abstract factory的区别卫东 问你 不会Java 如何生存?
相关话题的讨论汇总
话题: js话题: objects话题: javascript话题: prototypes话题: object