更新时间:2021-07-09 19:08:30
封面
版权信息
Credits
Preface
Part 1. Module 1
Chapter 1. JavaScript Primer
A little bit of history
How to use this module
Hello World
Summary
Chapter 2. Functions Closures and Modules
A function literal
Functions as data
Scoping
Function declarations versus function expressions
The arguments parameter
Anonymous functions
Closures
Timers and callbacks
Private variables
Loops and closures
Modules
Chapter 3. Data Structures and Manipulation
Regular expressions
Exact match
Match from a class of characters
Repeated occurrences
Beginning and end
Backreferences
Greedy and lazy quantifiers
Arrays
Maps
Sets
A matter of style
Chapter 4. Object-Oriented JavaScript
Understanding objects
Instance properties versus prototype properties
Inheritance
Getters and setters
Chapter 5. JavaScript Patterns
Design patterns
The namespace pattern
The module pattern
The factory pattern
The mixin pattern
The decorator pattern
The observer pattern
JavaScript Model-View-* patterns
The Model-View-Presenter pattern
Model-View-ViewModel
Chapter 6. Testing and Debugging
Unit testing
JavaScript debugging
Chapter 7. ECMAScript 6
Shims or polyfills
Transpilers
ES6 syntax changes
Chapter 8. DOM Manipulation and Events
DOM
Chaining
Traversal and manipulation
Working with browser events
Propagation
jQuery event handling and propagation
Event delegation
The event object
Chapter 9. Server-Side JavaScript
An asynchronous evented-model in a browser
Callbacks
Timers
EventEmitters
npm
JavaScript performance
Part 2. Module 2
Chapter 1. Designing for Fun and Profit
The road to JavaScript
What is a design pattern?
Anti-patterns
Part 1. Classical Design Patterns
Chapter 2. Organizing Code
Chunks of code
What's the matter with global scope anyway?
Objects in JavaScript
Build me a prototype
ECMAScript 2015 classes and modules
Best practices and troubleshooting
Chapter 3. Creational Patterns