Book Description
If you’re a developer moving to an environments that make heavy use of asynchronous APIs, such as Node, WinRT, or Chrome packaged apps, this book teaches you how to make use of promise constructs. JavaScript routinely supports asynchronous code, calling a function with no expectation of when a response might come back. Unfortunately, writing code in that style is difficult for humans, and promises are a key tool for bridging that gap. This book shows you how to use these tools, and also demonstrates techniques that enable you to use features like ?WebRTC.
Table of Contents
Chapter 1. Asynchronous JavaScript
Chapter 2. Introducing Promises
Chapter 3. Working with Standard Promises
Chapter 4. Using Libraries and Frameworks
Chapter 5. Error Handling
Chapter 6. Combining ECMAScript 6 Features with Promises
中文:
书名:带着承诺的JavaScript
如果您是一名开发人员,正在迁移到大量使用异步API的环境,如Node、WinRT或Chrome打包应用程序,这本书将教您如何使用Promise构造。JavaScript例行公事地支持异步代码,调用函数时并不预期何时会返回响应。不幸的是,以这种风格编写代码对人类来说是困难的,而承诺是弥合这一差距的关键工具。本书向您展示了如何使用这些工具,并演示了使您能够使用WebRTC等功能的技术。
目录表
第1章.异步JavaScript
Chapter 2. Introducing Promises
第3章:使用标准承诺
第4章.使用库和框架
第5章.错误处理
第6章:将ECMAScript 6的功能与承诺相结合
评论前必须登录!
注册