JavaScript Framework Design
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已经能用 jQuery 或 Vue 写业务,想弄懂框架内部原理的前端工程师
- 准备自研或维护公司内部组件库、小型框架的开发人员
- 计算机相关专业想从源码层面理解 JavaScript 与 DOM 封装的学生
- 需要评估选型、与框架作者对话的项目负责人和技术管理者
Not a good fit for
- 完全没有 JavaScript 与 DOM 基础的纯入门读者
- 只想学 Vue/React 用法、做业务落地的读者
- 期待现代构建工具、TypeScript 与工程化方案的系统讲解者
Reading tips
- 先通读第1—3章,亲手实现种子模块和语言模块,建立“框架是一堆小积木”的直觉。
- 读书时随手翻对应库的源码(jQuery、avalon)对照,书中的结论要用代码验证一遍。
- 把书中 2014 年前后的兼容方案当作历史背景,结合现代浏览器与 ES6+ 标准重新思考取舍。
- 按章做笔记,每章末尾自问“如果我来设计这一层,会怎么划分职责”,比抄代码更有收益。
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 The Seed Module (Namespaces, Object Extension, Array Conversion, Type Detection, domReady, No-Conflict Handling)
- Chapter 2 The Module Loading System (AMD Specification, Loader Path Detection, the require Method, the define Method)
- Chapter 3 The Language Module (Extensions and Fixes for Strings, Arrays, Numbers, Functions, and Dates)
- Chapter 4 Browser Sniffing and Feature Detection (Identifying Browsers, Event-Support Detection, Style-Support Detection, the Meaning of jQuery's Common Features)
- Chapter 5 Class Factories (JavaScript's Support for Classes, Implementations of Various Class Factories: P.js, JS.Class, simple-inheritance, etc.)
- Chapter 6 The Selector Engine
- Chapter 7 The Node Module
- Chapter 8 The Data Caching System
- Chapter 9 The Style Module
- Chapter 10 The Attribute Module (Including jQuery's Attribute System)
- Chapter 11 The Event System
- Chapter 12 Asynchronous Processing
- Chapter 13 The Data-Interaction Module (A Complete Ajax Implementation)
- Chapter 14 The Animation Engine
- Chapter 15 API Design and Plug-In Architecture
- Chapter 16 An Introduction to Mainstream MVVM Frameworks, Monitored Arrays, and Sub-Templates
FAQ
这本书和它的第2版有什么区别?
没有框架使用经验能读吗?
书里的技术是否已经过时?
作者司徒正美是谁?
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.