这是在github hubot 示例代码中中看到的, 有下面一个疑问:
源码在这里: https://github.com/github/hubot/blob/master/docs/scripting.md#making-http-calls
源码在这里: https://github.com/github/hubot/blob/master/docs/scripting.md#making-http-calls
|
1
.get() (err, res, body) ->
get() 返回的是个接受一个callback作为参数的函数,可以能get() 本身还要接受参数 |
|
duhastmichSep 1, 2013
2
跟coffeescript没有关系,是api设计
|
|
FrankFang128Oct 20, 2013 via Android
3
搜 柯里化
|