
es6
文章平均质量分 61
kiwi小白
这个作者很懒,什么都没留下…
展开
-
【ES6】之 Arrow Function箭头函数
基本语法 1. 更简洁的代码,摆脱function [1, 2, 3].map(function(x) { return x * 2}); es6: [1, 2, 3].map(x => x * 2); 2.语义化的this 在es6之前,函数都定义了自己的this值,这样会带来一些混乱 //在strict mode下 var self = this; a原创 2016-03-29 18:21:23 · 3845 阅读 · 0 评论 -
redux笔记
Introduction Motivation http://redux.js.org/docs/introduction/Motivation.html Mutation & Asynchronicity Solving by imposing certain restrictions -- Principles Principles http://redux.js.转载 2016-03-30 18:22:03 · 2104 阅读 · 0 评论