JavaScript: The Definitive Guide (7th Edition) cover

JavaScript: The Definitive Guide (7th Edition)

Rating 4.8
Chapters
18
Series
O'Reilly Media
ISBN
9787111677222

Tags

Summary

JavaScript: The Definitive Guide is a long-selling technical classic from O'Reilly. Since its first edition in 1996, it has accompanied generations of JavaScript programmers, and thanks to the rhinoceros on its cover, Chinese readers call it the "Rhino Book." The 7th edition is a comprehensive rewrite aligned with the ECMAScript 2020 standard; the Chinese edition was translated by Li Songfeng and published by China Machine Press. The book has 17 chapters in three main parts. Part I covers the language core: lexical structure, types and values, expressions and statements, objects, arrays, functions, classes, modules, the standard library, iterators and generators, asynchronous programming (Promises and async/await), and metaprogramming (Proxy, Reflect, Symbol). Part II turns to the Web platform, explaining JavaScript in the browser: DOM manipulation, events, Web Components, graphics, network requests, storage, and threads. Part III focuses on the server side and tooling: Node.js buffers, files, streams, threads, and child processes, plus tools and language extensions widely used by professional developers, such as ESLint, Babel, and Jest. The book does not aim to "hand-hold you through writing business code"; instead it explains the language specification thoroughly, tracing concepts like closures, the prototype chain, and scope back to their design motivations, with rigorous examples and a compact length (about 600 pages in Chinese, with the bulky documentation reference of the 6th edition greatly trimmed). It suits both systematic reading and desk-side reference at any time.

Editor's review

如果你只打算在书架或电子书库里放一本 JavaScript 的“答案之书”,那多半就是这本“犀牛书”。第7版的诚意在于:它不是把旧版修修补补,而是按 ES2020 从头重写——类、模块、迭代器、生成器、Promise、async/await、元编程全部独立成章,Web 平台与 Node.js 两部分也更新到当代实践。 它的价值不在“教你写页面”,而在“告诉你语言为什么这样工作”。闭包为何如此、原型与类的边界在哪、Proxy 与 Reflect 究竟解决什么问题,书中都能给出贴近规范的说明,配合简洁而完整的示例代码,很适合用于读源码、写库、排查疑难 bug 时反查。 第7版把六版中占去近半本书的文档式参考大幅精简,中文版约 600 页,可读性比上一版明显提升。纸质版排版干净、索引齐全,适合长期翻阅;电子版便于全文检索,作为案头工具书各有优势。作为一本二十多年持续更新的长销书,它的定位始终清晰:语言层面的深度参考,而不是框架速成手册。

Who it's for

A good fit for

  • 已有一定编程基础、想系统学透 JavaScript 语言机制的开发者
  • 需要一本可长期反查语言细节的案头工具书的前端工程师
  • 希望从 ES5 时代知识升级到 ES2020 的老手
  • 想理解规范与设计动因、写出更健壮库代码的人

Not a good fit for

  • 完全零基础、需要手把手带着写第一个网页的纯新手
  • 只想快速查 Vue/React 用法和工程化流程的读者
  • 只想找一个下午速成框架项目的人

Reading tips

  1. 第一遍按第1—10章顺序读语言核心部分,第11章标准库和第16章 Node 内容可先略读,用时再查。
  2. 边读边在浏览器控制台或 Node 里敲示例,尤其是闭包、类、生成器与 Promise 几章的代码。
  3. 把它当字典而非小说,遇到语言层面的疑问先查目录和索引,再配合 MDN 与最新规范补齐新特性。
  4. 读完第13章异步编程后,用一个小项目(如 CLI 工具或简单服务)串起模块、异步与 Node 部分的知识。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Preface
  2. Chapter 1 Introduction to JavaScript
  3. Chapter 2 Lexical Structure
  4. Chapter 3 Types, Values, and Variables
  5. Chapter 4 Expressions and Operators
  6. Chapter 5 Statements
  7. Chapter 6 Objects
  8. Chapter 7 Arrays
  9. Chapter 8 Functions
  10. Chapter 9 Classes
  11. Chapter 10 Modules
  12. Chapter 11 The JavaScript Standard Library
  13. Chapter 12 Iterators and Generators
  14. Chapter 13 Asynchronous JavaScript
  15. Chapter 14 Metaprogramming
  16. Chapter 15 JavaScript in Web Browsers
  17. Chapter 16 Server-Side JavaScript with Node
  18. Chapter 17 JavaScript Tools and Extensions

FAQ

这本书是第几版?对应哪个 JavaScript 标准?
中文版为原书第7版,2021年由机械工业出版社出版,ISBN 9787111677222,译者李松峰。内容基于 ECMAScript 2020 规范全面更新,涵盖类、模块、迭代器、生成器、Promise、async/await 与元编程等内容。
为什么它被叫作“犀牛书”?
该书英文原版 JavaScript: The Definitive Guide 由 O'Reilly 出版,封面是该社动物系列书籍中的犀牛图案,因此国内读者习惯称它为“犀牛书”;也偶有读者把它与红封面的《JavaScript高级程序设计》混称。
第7版和第6版有什么区别?
第6版(2012年,淘宝前端团队译)涵盖 HTML5 与 ECMAScript 5,厚达千页并含大量文档参考;第7版按 ES2020 重写,新增类、模块、迭代器、生成器、Promise、async/await、元编程等章节,篇幅精简到约 600 页,阅读负担更小。
零基础可以直接读这本吗?
不太建议作为第一本书。作者定位是“有一定编程经验、想学习 JavaScript 的读者”,书中讲解偏语言机制与规范,缺少循序渐进的练习设计。零基础可先用入门教程打底,再以本书深化理解。
书里的内容会不会过时?
主体语言机制与设计思想长期有效,但 API 细节停在 ES2020 前后,如 Array.at()、Object.hasOwn() 等较新特性未覆盖。建议把它作为语言原理参考,日常 API 查询配合 MDN 使用。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category