# Coffee

# 语法

  • 三元运算符
a = if true then 5 else 10
a = if false then 5 else 10
  • setTimeout
setTimeout -> 
  something param
, 1000
  • 遍历对象
for key of object

# 资料

CoffeeScript常用编程模式 (opens new window)

Last Updated: 12/15/2023, 8:18:50 AM