検索

ホームページ  >  に質問  >  本文

javascript - setTimeout(function(){ ... }, 400) 用 coffeescript 应该怎么写?

下面这段 javascript 如果要用 coffeescript 实现应该怎么个写?

setTimeout(function(){
    far(boo);
}, 400);
PHP中文网PHP中文网2897日前401

全員に返信(1)返信します

  • 迷茫

    迷茫2017-04-10 14:38:03

    setTimeout ->
      far(boo)
    , 400
    

    以及两个非常有用的网站:

    http://coffeescript.org/
    http://js2coffee.org/

    返事
    0
  • キャンセル返事