【发布时间】:2017-02-22 22:02:30
【问题描述】:
见过
defereed.then (arg) =>
function body
还有
deferred.then (
(arg) =>
function body
)
有人能解释一下区别吗?
这是来自https://github.com/gwomacks/php-debug/blob/master/lib/engines/dbgp/dbgp-instance.coffee
【问题讨论】:
-
如果你提到this,那只是奇怪的缩进。
-
前一种形式在该文件的上半部分占主导地位。后者开始出现在另一半。
标签: coffeescript promise q deferred