Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 livescript 中编写闭包
for i from 1 to 10 cb = -> console.log i set-timeout cb, i*1000
得到 1 到 10 而不是 10 乘以 10 ?
for let i from 1 to 10 cb = -> console.log i set-timeout cb, i*1000