You Don't Know JS Yet: Objects and Classes

简介:
无论你对JavaScript有多少经验,你都不可能完全理解这门语言。这个简洁,深入的指南将带您进入JavaScript的结构和对象原型。您将了解它们是如何工作的,以及为什么它们是行为委托的组成部分-一种设计模式,其中对象是链接的,而不是克隆的。
像 “你不知道JS” 系列中的其他书籍一样,this和对象原型深入到许多JavaScript程序员所避免的语言的棘手部分。有了这些知识,你就可以成为一个真正的JavaScript高手。有了这本书,你将:
根据函数的调用方式,探索此绑定如何指向对象看看JS对象的性质,为什么你需要指向它们了解开发人员如何使用mixin模式在JS中伪造类检查JS的原型机制如何在对象之间形成链接了解如何从类/继承设计转向行为委托了解OLOO (对象链接到其他对象) 编码风格如何自然地实现行为委托
英文简介:
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 delegationUnderstand how the OLOO (objects-linked-to-other-objects) coding style naturally implements behavior delegation
- 书名
- You Don't Know JS Yet: Objects and Classes
- 译名
- 你还不知道 JS:对象和类
- 语言
- 英语
- 年份
- 2020
- 页数
- 173页
- 大小
- 2.67 MB
- 下载
You Don't Know JS Yet: Objects and Classes.pdf
- 密码
- 65536
最后更新:2025-04-12 23:57:50