码迷,mamicode.com
首页 >  
搜索关键字:es6    ( 5574个结果
[ES6] 09. Destructuring Assignment -- 2
Read More:http://es6.ruanyifeng.com/#docs/destructuringArray“模式匹配”,只要等号两边的模式相同,左边的变量就会被赋予对应的值:Exp 1:var [head, ...tail] = [1, 2, 3, 4];console.log(hea...
分类:其他好文   时间:2014-11-21 06:53:49    阅读次数:189
[ES6] 08. Destructuring Assignment -- 1
Here is the way you get value from an object:var obj = { color: "blue"}console.log(obj.color); //blueDestructuring Assignment:ObjectDestructuring ...
分类:其他好文   时间:2014-11-21 01:31:07    阅读次数:154
[ES6] 06. Arrow Function =>
ES6 arrow function is somehow like CoffeeScirpt.CoffeeScript: //function callcoffee = -> coffee()coffee=(messag...
分类:其他好文   时间:2014-11-20 06:50:32    阅读次数:298
[ES6] 07. Default Value for function param
Normally, we can set default value for function param://Here use "Hello" as default paramvar receive =function(message="Hello", handle){ handler(me...
分类:其他好文   时间:2014-11-20 06:48:53    阅读次数:185
[ES6] 05. The leg keyword -- 3. Block Scope
In ES6, IIFE is not necessary:// IIFE写法(function () { var tmp = ...; ...}());// 块级作用域写法{ let tmp = ...; ...}另外,ES6也规定,函数本身的作用域,在其所在的块级作用域之...
分类:其他好文   时间:2014-11-20 01:14:15    阅读次数:218
[ES6] 03. The let keyword -- 1
var message = "Hi";{ var message = "Bye"; }console.log(message); //ByeThe message inside the block still has impact on the outside.If you add ...
分类:其他好文   时间:2014-11-19 23:58:43    阅读次数:443
[ES6] 04. The let keyword -- 2 Fiald case
Fialdcase 1: let can work in it's block{ let a = 10; var b = 1;}a // ReferenceError: a is not defined.b //1Case 2: Let has no "Hosting" Problemf...
分类:其他好文   时间:2014-11-19 23:56:04    阅读次数:321
[ES6] 02. Traceur compiler and Grunt
There are two ways to compiler the ES6 fils to Javascript file.One:traceur --out build/app.js --script js/app.js --experimentalTwo:Using grunt.Install...
分类:其他好文   时间:2014-11-18 00:04:43    阅读次数:262
2014Ember带来怎样的变化?
每隔几个月的时间,Ember的核心团队就会聚在一起讨论目前遇到的各种问题,并决定下一季度需要优先处理的各种事务。这一次,在俄勒冈州的波特兰,大家聚在一起,商讨2014年的发展方向。开发工具 & 模块我们花了大量时间商讨将ES6模块和快速、强大、功能完备的开发工具整合的事宜。我喜欢Ember交流会议的...
分类:其他好文   时间:2014-11-13 10:40:31    阅读次数:281
ES6箭头函数和它的作用域
在ES6很多很棒的新特性中, 箭头函数 (或者大箭头函数)就是其中值得关注的一个! 它不仅仅是很棒很酷, 它很好的利用了作用域, 快捷方便的在现在使用以前我们用的技术, 减少了很多代码……但是如果你不了解箭头函数原理的话可能就有点难以理解. 所以,让我们来看下箭头函数, 就是现在!...
分类:其他好文   时间:2014-11-10 12:12:11    阅读次数:175
5574条   上一页 1 ... 554 555 556 557 558 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!