2014年01月15日 星期三 10:27
Orchestrating asynchronous function calls in JavaScript often leads to callback hell, but there is a reliable way to avoid this painful state of affairs. With this concise and simple guide, you’ll learn how to use jQuery deferreds and promises, an elegant approach for managing asynchronous calls in both client and server applications.
This book contains 18 examples that use deferreds to solve progressively challenging real-world programming problems, along with 75 stimulating puzzles (and their solutions) that will help you understand how and when to use deferreds. You’ll learn new tricks in a fun way, and become immersed in the practice of event-based programming.
Table of Contents
Chapter 1. Introduction
Chapter 2. The jQuery Deferred API
Chapter 3. Deferred Recipes
Chapter 4. More Time in the Mental Gymnasium
Appendix A. Hints for Selected Challenges
Appendix B. The Promises/A+ Specification
Appendix C. Converting an ArrayBuffer to Base 64
2014年01月15日 星期三 10:35
链接:http://pan.baidu.com/s/1ntz57N7 密码:9tsi
Zeuux © 2024
京ICP备05028076号