JavaScript Framework Design (2nd Edition)
Tags
Summary
Editor's review
Who it's for
A good fit for
- 有一到三年经验、想弄清框架底层实现的前端开发者
- 需要维护或二次开发 jQuery 类老项目的工程师
- 准备面试、想系统补足 JavaScript 语言与 DOM 底层知识的人
- 计算机相关专业高年级学生与培训机构的进阶课程学员
- 对框架设计方法论感兴趣、打算自研内部组件库的技术负责人
Not a good fit for
- 零基础读者:书中默认你熟悉 JavaScript 语法与 DOM 操作
- 只想学 React 或 Vue 业务写法、不关心实现原理的人
- 期望全书基于 ES6+ 与 TypeScript 现代语法的读者,本书示例仍以 ES5 为主
Reading tips
- 按章节顺序读前三章打底,之后再按兴趣跳读选择器、事件、模板等重点章节,不必逐页死磕。
- 读每个模块时打开对应开源框架源码对照,边读边在控制台复现作者的最小实现。
- 第2版与第1版章节差异较大,若两版都在手,先读第2版的移动端事件与组件章节。
- 遇到兼容性代码不必逐条记忆,重点理解“为什么要做特征侦测”这一层设计思路。
About the publisher
Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.
Contents
- Chapter 1 Seed Module (modularization, feature introduction, object extension, array-like conversion, type detection, domReady, no-conflict handling, summary)
- Chapter 2 Language Module (string extensions and fixes: repeat, byteLen, pad, quote, trim and whitespace; extensions and fixes for arrays, numbers, functions, dates)
- Chapter 3 Browser Sniffing and Feature Detection (browser detection, the document.all anecdote, event support detection, style support detection, meanings of common jQuery features)
- Chapter 4 Class Factories (JavaScript's support for classes, implementations of various class factories: P.js, JS.Class, simple-inheritance, def, etc.)
- Chapter 5 Selector Engine
- Chapter 6 Node Module
- Chapter 7 Data Cache Module
- Chapter 8 Style Module
- Chapter 9 Attribute Module
- Chapter 10 Event System (desktop and mobile events, jQuery's event system)
- Chapter 11 Asynchronous Model
- Chapter 12 Data Interaction Module (a complete Ajax implementation)
- Chapter 13 Animation Engine
- Chapter 14 MVVM and Front-End Templates (static templates, MVVM dynamic templates)
- Chapter 15 Performance Wall and Complexity Wall, Components (jQuery-era component solutions, avalon2 component solutions, React component solutions)
- Chapter 16 API Design, Pluginization, and Framework Outlook
FAQ
这本书和《JavaScript高级程序设计》有什么区别?
第1版和第2版应该买哪一版?
书里的技术是不是已经过时了?
需要先读完 jQuery 源码吗?
作者司徒正美是谁?
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.
About the author
Situ Zhengmei is a technical author in the field of front-end development in China. Publicly available information about the author is limited, and the best-known representative work is JavaScript Framework Design (2nd Edition). This book falls under programming design and focuses on the design ideas and implementation methods of JavaScript frameworks, targeting learners and developers who want to understand the underlying mechanisms of front-end frameworks in depth. In terms of subject matter, the author attends to abstraction and engineering practice at the framework level rather than listing scattered syntax tips, and the writing tends to move from design principles to code implementation, helping readers build an overall understanding of framework structure. Because only one work by this author is included in the collection, details such as biography and professional experience cannot be verified; readers may turn to the book itself to learn about the author's technical grounding and expressive style in JavaScript framework design.