摘要: CoffeeScript有个语法叫解构赋值(Destructuring Assignment),可以将一个对象的不同成员一次性赋值给多个的变量。官网中给了下面一个例子:futurists = sculptor: "Umberto Boccioni" painter: "Vladimir Burliuk" poet: name: "F.T. Marinetti" address: [ "Via Roma 42R" "Bellagio, Italy 22021" ]{poet: {name, add 阅读全文
posted @ 2012-07-21 15:33 neutra 阅读(4359) 评论(2) 推荐(0) 编辑