how should I chain function call in coffeescript

前端 未结 2 1328
醉梦人生
醉梦人生 2021-02-13 01:35

This coffeecode

obj
  .func1()
  .func2()

will result in

obj.func1().func2();

this work find.

But w

2条回答
  •  礼貌的吻别
    2021-02-13 01:55

    No way for now. There are ongoing discussions for enabling it:

    • https://github.com/jashkenas/coffee-script/issues/1407
    • https://github.com/jashkenas/coffee-script/issues/1495

提交回复
热议问题