好书推荐 好书速递 排行榜 读书文摘

Understanding ECMAScript 6

Understanding ECMAScript 6
作者:Nicholas C. Zakas
副标题:The Definitive Guide for JavaScript Developers
出版社:No Starch Press
出版年:2016-09
ISBN:9781593277574
行业:计算机
浏览数:3

内容简介

ECMAScript 6 represents the biggest update to the core of JavaScript in the history of the language. In Understanding ECMAScript 6, expert developer Nicholas C. Zakas provides a complete guide to the object types, syntax, and other exciting changes that ECMAScript 6 brings to JavaScript. Every chapter is packed with example code that works in any JavaScript environment so you'll be able to see new features in action. You'll learn:

* How ECMAScript 6 class syntax relates to more familiar JavaScript concepts

* What makes iterators and generators useful

* How arrow functions differ from regular functions

* Ways to store data with sets, maps, and more

* The power of inheritance

* How to improve asynchronous programming with promises

* How modules change the way you organize code

Whether you're a web developer or a Node.js developer, you'll find Understanding ECMAScript 6 indispensable on your journey from ECMAScript 5 to ECMAScript 6.

......(更多)

作者简介

Nicholas C. Zakas has been working on web applications since 2000, focusing on frontend development, and is known for writing and speaking about frontend best practices. He honed his experience during his five years at Yahoo!, where he was principal frontend engineer for the Yahoo! home page. He is the author of several books, including The Principles of Object-Oriented JavaScript (No Starch Press) and Professional JavaScript for Web Developers (Wrox).

......(更多)

目录

Introduction

Chapter 1: Block Bindings

Chapter 2: Strings and Regular Expressions

Chapter 3: Functions

Chapter 4: Expanded Object Functionality

Chapter 5: Destructuring for Easier Data Access

Chapter 6: Symbols and Symbol Properties

Chapter 7: Sets and Maps

Chapter 8: Iterators and Generators

Chapter 9: Introducing JavaScript Classes

Chapter 10: Improved Array Capabilities

Chapter 11: Promises and Asynchronous Programming

Chapter 12: Proxies and the Reflection API

Chapter 13: Encapsulating Code with Modules

Appendix A: Minor Changes in ECMAScript 6

Appendix B: Understanding ECMAScript 7 (2016)

......(更多)

读书文摘

function Person(name) { if (typeof new.target === Person) { this.name = name; // using new } }

如果向Promise.resolve()方法或Promise.reject()方法传入一个Promise,那么这个 Promise会被直接返回。

......(更多)

猜你喜欢

点击查看