JavaScript Promises Essentials
暫譯: JavaScript Promise 基礎精要

Rami Sarieddine

  • 出版商: Packt Publishing
  • 出版日期: 2014-09-29
  • 售價: $1,120
  • 貴賓價: 9.5$1,064
  • 語言: 英文
  • 頁數: 88
  • 裝訂: Paperback
  • ISBN: 178398564X
  • ISBN-13: 9781783985647
  • 相關分類: JavaScript
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Build fully functional web applications using promises, the new standard in JavaScript

About This Book

  • Integrate JavaScript Promises into your application by mastering the key concepts of the Promises API
  • Replace complex nested callbacks in JavaScript with the more intuitive chained Promises
  • Acquire the knowledge needed to start working with JavaScript Promises immediately

Who This Book Is For

If you are a JavaScript developer working with asynchronous operations and want to know more about promises, then this book is ideal for you. Having a detailed explanation of JavaScript promises will be perfect as your next step towards adopting this new standard and using the API in your web and JavaScript applications.

What You Will Learn

  • Implement asynchronous programming in JavaScript
  • Get acquainted with the JavaScript Promises API
  • Choose the right JavaScript libraries to use callbacks in a non-compatible platform
  • Write chained asynchronous operations that are easy to manage
  • Master WinJS Promises for developing Windows applications
  • Differentiate between various implementations of promises in JavaScript
  • Put promises into action in your applications
  • Catch and handle errors effectively in asynchronous operations
  • Explore browser support and platform compatibility for JavaScript promises

In Detail

Promises are a new programming paradigm in JavaScript that allow developers to request data that they don't have yet and deal with it at a non-determined point in the future (asynchronously). Starting with the basics of the promise objects, we'll be able to leverage the maximum capabilities of promises when writing applications.

This book starts by giving you some background information on the asynchronous programming model in JavaScript, recognizing its importance in JavaScript programming. It then walks you through the key concepts and intricacies of the Promises API. Following that, you will learn how you can write complex asynchronous operations with chained promises and be able to catch and handle exceptions. With this book, you'll learn how to write better asynchronous operations using JavaScript promises.

商品描述(中文翻譯)

使用 promises 建立完全功能的網頁應用程式,這是 JavaScript 的新標準

本書介紹


  • 透過掌握 Promises API 的關鍵概念,將 JavaScript Promises 整合到您的應用程式中

  • 用更直觀的鏈式 Promises 取代 JavaScript 中複雜的嵌套回呼

  • 獲得立即開始使用 JavaScript Promises 所需的知識

本書適合誰閱讀

如果您是一位從事非同步操作的 JavaScript 開發人員,並希望了解更多有關 promises 的資訊,那麼這本書非常適合您。對於 JavaScript promises 的詳細解釋將是您採用這一新標準並在您的網頁和 JavaScript 應用程式中使用 API 的完美下一步。

您將學到什麼

  • 在 JavaScript 中實現非同步編程
  • 熟悉 JavaScript Promises API
  • 選擇合適的 JavaScript 函式庫在不相容的平台上使用回呼
  • 撰寫易於管理的鏈式非同步操作
  • 掌握 WinJS Promises 以開發 Windows 應用程式
  • 區分 JavaScript 中各種 promises 的實現方式
  • 在您的應用程式中實際運用 promises
  • 有效捕捉和處理非同步操作中的錯誤
  • 探索 JavaScript promises 的瀏覽器支援和平台相容性

詳細內容

Promises 是 JavaScript 中的一種新編程範式,允許開發人員請求尚未擁有的數據,並在未來的某個不確定的時間點(非同步)處理它。從 promise 物件的基本概念開始,我們將能夠在撰寫應用程式時充分利用 promises 的最大能力。

本書首先提供有關 JavaScript 中非同步編程模型的背景資訊,認識到其在 JavaScript 編程中的重要性。接著,將引導您了解 Promises API 的關鍵概念和細節。隨後,您將學會如何使用鏈式 promises 撰寫複雜的非同步操作,並能夠捕捉和處理例外。透過這本書,您將學會如何使用 JavaScript promises 撰寫更好的非同步操作。