标签: closures livescript
如何在lifecript中编写闭包
<welcome-file-list> <welcome-file></welcome-file> </welcome-file-list>
获得1到10而不是10倍10?
答案 0 :(得分:5)
for let i from 1 to 10 cb = -> console.log i set-timeout cb, i*1000