TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
An introduction to ES6 Part 3: Destructuring
24 点
作者
timblair
超过 11 年前
4 条评论
teamnyble
超过 11 年前
Collapse
Combine this with arrow function syntax (which is already in Firefox):<p><pre><code> let square = x => x * x </code></pre> And the next version of JavaScript is looking much more fun to work with!
评论 #6488763 未加载
Jasper_
超过 11 年前
It even works for argument lists too:<p><pre><code> function foo(a, { b: b, c: c }, [d, e]) { print (a, b, c, d, e); }</code></pre>
j_m_b
超过 11 年前
Collapse
I didn't know js had a let statement.
评论 #6490648 未加载
redcircle
超过 11 年前
Collapse
Does anyone call it ES?
评论 #6488952 未加载
评论 #6491260 未加载