码迷,mamicode.com
首页 >  
搜索关键字:es6    ( 5574个结果
react+redux教程(三)reduce()、filter()、map()、some()、every()、...展开属性
reduce()、filter()、map()、some()、every()、...展开属性 这些概念属于es5、es6中的语法,跟react+redux并没有什么联系,我们直接在https://developer.mozilla.org/en-US/ 这里可以搜索到相关api文档。但是redux的...
分类:其他好文   时间:2016-01-21 19:11:39    阅读次数:184
ReactJS结合ES6入门Template
一、前言二、介绍ReactJSECMAScript 6三、入门DEMO"Hello,XXX“ 输出 ES5写法 ES6import React,{Component} from 'react';class HelloMessage extends Component{ construc...
分类:Web程序   时间:2016-01-20 12:42:21    阅读次数:237
[转载]Sublime Text 3 搭建 React.js 开发环境
[转载]Sublime Text 3 搭建 React.js 开发环境Sublime有很强的自定义功能,插件库很庞大,针对新语言插件更新很快,配合使用可以快速搭建适配语言的开发环境。1.babel-sublime支持ES6, React.js, jsx代码高亮,对 JavaScript, jQuer...
分类:Web程序   时间:2016-01-17 10:57:45    阅读次数:236
[ES6] ITERATORS
Iterables return an iterator object. This object knows how to access items from a collection 1 at a time, while keeping track of its current position ...
分类:其他好文   时间:2016-01-14 22:21:04    阅读次数:182
[ES6] Generators
Example 1:function *topicList(){ yield "ES2015"; yield "Semi-colons: good or bad?"; yield "TypeScript";}for( let topic of topicList() ){ console.l...
分类:其他好文   时间:2016-01-14 22:19:06    阅读次数:244
[ES6] Export class and variable
Export variable:export const MAX_USERS = 3;export const MAX_REPLIES = 3;Export default class:export default class FlashMessage { constructor(message)....
分类:其他好文   时间:2016-01-14 22:13:41    阅读次数:176
[ES6] Class Inherit
In constructor, you can call parent's constuctor() method by supert();class ShoppingCart { constructor(userId){ this.userId = userId; this.prod...
分类:其他好文   时间:2016-01-14 21:02:20    阅读次数:159
[ES6] WeakMap vs Map
WeakMap: is a type of Map where only objects can be passed as keys. Primitive data type -- such are string, numbers, booleans, etc --- are not allowed...
分类:其他好文   时间:2016-01-14 06:20:12    阅读次数:215
[ES6] When should use Map instead of Object
Use Maps when keys are unknown until runtime:Map:let recentPosts = new Map();createPost( newPost, (data)=>{ // Key unknown until runtime, so use Ma...
分类:其他好文   时间:2016-01-14 06:15:21    阅读次数:152
[ES6] Objects vs Maps
Map is really useful when you want to use object as a key to set vaule, in ES5, you cannot really use object as a key:var user1 = { name: "Wan", age.....
分类:其他好文   时间:2016-01-13 07:02:39    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!