ES6 Tutorial# ES6 # tutorialspoint SIMPLY EASY LEARNING ## About the Tutorial European Computer Manufacturers Association (ECMAScript) or (ES) is a standard for scripting languages like JavaScript, ActionScript simple and practical approach through JavaScript to describe the new features in ECMAScript 2015 (ES6), ECMAScript 2016 (ES7), ECMAScript 2017 (ES8) and ECMAScript 2018 (ES9). ## Audience This tutorial The tutorial will give you enough understanding on the functionalities of ECMAScript and also about ES6, ES7, ES8 and ES9. ## Prerequisites An understanding of JavaScript programming concepts is necessary0 码力 | 435 页 | 4.00 MB | 2 年前3
阮一峰 《ECMAScript 6入门》 第三版[Image](/uploads/documents/3/8/c/7/38c75e562e3e464cc6380e7213d839c7/p1_1.jpg) ECMAScript 6 Primer # ES6标准入门 (第3版) ## 目錄 前言 1.1 ECMAScript 6 简介 1.2 let 和 const 命令 1.3 变量的解构赋值 1.4 字符串的扩展 c/7/38c75e562e3e464cc6380e7213d839c7/p5_2.jpg) ECMAScript 6 Primer # ES6标准入门 (第3版)阮一峰著 含子工工七级社 中国工信出版集团 電子工業出版社 本书覆盖 ES6 与上一个版本 ES5 的所有不同之处,对涉及的语法知识给予详细介绍,并给出大量简洁易懂的示例代码。 本书为中级难度,适合已经掌握 ES5 的读 的读者,用来了解这门语言的最新发展;也可当作参考手册,查寻新增的语法点。 全书已由电子工业出版社出版,2017年9月推出了第三版,书名为《ES6 标准入门》。纸版是基于网站内容排版印刷的。 感谢张春雨编辑支持我将全书开源的做法。如果您认可这本书,建议购买纸版。这样可以使出版社不因出版开源书籍而亏钱,进而鼓励更多的作者开源自己的书籍。下面是第三版的购买地址。 · 淘宝 · 京东 · 当当 · 亚马逊0 码力 | 679 页 | 2.66 MB | 2 年前3
ThinkJS 2.1 Documentationfirst Node.js MVC framework that supports using full ES6/7 features to develop Node.js application. By using `async/await` in ES7 or `*/yield` in ES6, ThinkJS totally resolves the hard problem of asynchronous efficient than ever before. Using ES6/7 features to build projects is very efficient, that must be the trend. The latest version of Node.js has supported the features of ES6 more friendly, though not all features features. At this time, Babel can help us to compile ES6 code to ES5 code. ## Features ## Using ES6/7 features Babel compile our code to ES5 so we don't need worry about the browser compatibility0 码力 | 148 页 | 1.69 MB | 2 年前3
ThinkJS 2.2 Documentationfirst Node.js MVC framework that supports using full ES6/7 features to develop Node.js application. By using `async/await` in ES7 or `*/yield` in ES6, ThinkJS totally resolves the hard problem of asynchronous efficient than ever before. Using ES6/7 features to build projects is very efficient, that must be the trend. The latest version of Node.js has supported the features of ES6 more friendly, though not all features features. At this time, Babel can help us to compile ES6 code to ES5 code. ## Features ## Using ES6/7 features Babel compile our code to ES5 so we don't need worry about the browser compatibility0 码力 | 156 页 | 2.62 MB | 2 年前3
ThinkJS 2.0 中文文档是一款使用 ES6/7 特性全新开发的 Node.js MVC 框架,使用 ES7 中 async/await,或者 ES6 中的 */yield 特性彻底解决了 Node.js 中异步嵌套的问题。同时吸收了国内外众多框架的设计理念和思想,让开发 Node.js 项目更加简单、高效。 使用 ES6/7 特性来开发项目可以大大提高开发效率,是趋势所在。并且新版的 Node.js 对 ES6 特性也有 特性也有了较好的支持,即使有些特性还没有支持,也可以借助 Babel 编译来支持。 ## 特性 ## 使用 ES6/7 特性来开发项目 借助 Babel 编译,可以在项目中大胆使用 ES6/7 所有的特性,无需担心哪些特性当前版本不支持。尤其是使用 async/await 或者 */yield 来解决异步回调的问题。 //user controller, home/controller/user.js await this.session('userInfo', result); return this.success(); } } 上面的代码我们使用了 ES6 里的 class, export, let 以及 ES7 里的 async 和 await 等特性,虽然查询数据库和写入 Session 都是异步操作,但借助 async/await,代码都是同步书写的。最后使用0 码力 | 238 页 | 1.87 MB | 2 年前3
ThinkJS 2.2 中文文档是一款使用 ES6/7 特性全新开发的 Node.js MVC 框架,使用 ES7 中 async/await,或者 ES6 中的 */yield 特性彻底解决了 Node.js 中异步嵌套的问题。同时吸收了国内外众多框架的设计理念和思想,让开发 Node.js 项目更加简单、高效。 使用 ES6/7 特性来开发项目可以大大提高开发效率,是趋势所在。并且新版的 Node.js 对 ES6 特性也有 特性也有了较好的支持,即使有些特性还没有支持,也可以借助 Babel 编译来支持。 ## 特性 ## 使用 ES6/7 特性来开发项目 借助 Babel 编译,可以在项目中大胆使用 ES6/7 所有的特性,无需担心哪些特性当前版本不支持。尤其是使用 `async/await` 或者 `*/yield` 来解决异步回调的问题。 //user controller, home/controller/user sion } } await this.session('userInfo', result); return this.success(); } 上面的代码我们使用了 ES6 里的 class, export, let 以及 ES7 里的 async/await 等特性,虽然查询数据库和写入 Session 都是异步操作,但借助 async/await,代码都是同步书写的。最后使用0 码力 | 277 页 | 3.61 MB | 2 年前3
ThinkJS 2.0 Documentationfirst Node.js MVC framework that supports using full ES6/7 features to develop Node.js application. By using `async/await` in ES7 or `*/yield` in ES6, ThinkJS totally resolves the hard problem of asynchronous efficient than ever before. Using ES6/7 features to build projects is very efficient, that must be the trend. The latest version of Node.js has supported the features of ES6 more friendly, though not all features features. At this time, Babel can help us to compile ES6 code to ES5 code. ## Features ## Using ES6/7 features Babel compile our code to ES5 so we don't need worry about the browser compatibility0 码力 | 141 页 | 1.61 MB | 2 年前3
BabelJS Tutorial2. BabelJS — Environment Setup ..... 6 NodeJS ..... 6 3. Babel — CLI ..... 9 4. BabelJS — ES6 Code Execution ..... 15 5. BabelJS — Project setup using Babel 6 ..... 20 Create Project Setup Setup ..... 20 6. BabelJS — Project Setup Using Babel 7 ..... 27 7. BabelJS — Transpile ES6 features to ES5 ..... 30 Let + Const ..... 30 Const ..... 32 Arrow Functions ..... 33 Classes & Spread Properties.....49 Proxies.....53 8. BabelJS — Transpile ES6 Modules to ES5.....56 ES6 modules and Webpack.....57 ES6 modules and Gulp.....65 9. BabelJS — Transpile ES7 features to ES50 码力 | 173 页 | 2.70 MB | 2 年前3
JavaScript Promise迷你书(中文版)都想用Promise来解决 - 以ES6 Promises为基础进行学习,逐渐发展形成自己的风格 像上面所提到的那样,本书主要是以ES6 Promises,即JavaScript的标准规范为基础的、Promise的相关知识为主要讲解内容。 在Firefox和Chrome这样技术比较超前的浏览器上,不需要安装额外的插件就能使用Promise功能,此外ES6 Promises的规范来源于Prom 所以,promise的功能是可以将复杂的异步处理轻松地进行模式化,这也可以说得上是使用promise的理由之一。 接下来,让我们在实践中来学习JavaScript的Promise吧。 ## Promise 简介 在 ES6 Promises 标准中定义的API还不是很多。 目前大致有下面三种类型。 Constructor Promise 类似于 XMLHttpRequest,从构造函数 Promise 来创建一个新建新 " unresolved" - Pending 既不是resolve也不是reject的状态。也就是promise对象刚被创建后的初始化状态等 关于上面这三种状态的读法,其中左侧为在 ES6 Promises 规范中定义的术语,而右侧则是在 Promises/A+ 中描述状态的术语。 基本上状态在代码中是不会涉及到的,所以名称也无需太在意。在这本书中,我们会基于 Promises/ $0 码力 | 112 页 | 1010.02 KB | 2 年前3
JavaScript Promiseの本 v1トを扱えるようになること • Promiseの向き不向きについて学び、何でもPromiseで解決するべきではないと知ること • ES6 Promisesを元に基本をよく学び、より発展した形を自分で形成できるようになること この書籍では、先程も述べたようにES6 Promises、つまりJavaScriptの標準仕様(ECMAScript)をベースとしたPromiseについて書かれています。 そのため、FirefoxやChromeなどモダンなブラウザでは、ライブラリを使うこと無く利用できる機能であり、またES6 Promisesは元がPromises/A+というコミュニティベースの仕様であるため、多くの実装ライブラリがあります。 ブラウザネイティブの機能、またはライブラリを使うことで今すぐ利用できるPromiseについて基本的なAPIから学んでいきます。その中でPromiseの得意 割であり、Promiseを使う理由の一つであるといえるでしょう。 それでは、実際にJavaScriptでのPromiseについて学んでいきましょう。 ## Promise Overview ES6 Promisesの仕様で定義されているAPIはそこまで多くはありません。 大きく分けて以下の3種類になります。 Constructor Promiseは XMLHttpRequest のように、コンストラクタ関数である0 码力 | 115 页 | 1.06 MB | 2 年前3
共 99 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













