TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An introduction to ES6 Part 3: Destructuring

24 点作者 timblair超过 11 年前

4 条评论

teamnyble超过 11 年前
Combine this with arrow function syntax (which is already in Firefox):<p><pre><code> let square = x =&gt; 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 年前
I didn&#x27;t know js had a let statement.
评论 #6490648 未加载
redcircle超过 11 年前
Does anyone call it ES?
评论 #6488952 未加载
评论 #6491260 未加载