×

Loading...

在 js 里通过 destructuring expression,看上去很类似,不过 js array destructuring 超实用... 个人觉得 c# / es6+ 是最简练,最优雅的... 不过c#最近的版本有一些 features 有点为语法糖而语法糖了...

The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
Report