V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
liaa
V2EX  ›  问与答

求教一个coffeescript写法问题

  •  
  •   liaa · Sep 1, 2013 · 2860 views
    This topic created in 4626 days ago, the information mentioned may be changed or developed.
    这是在github hubot 示例代码中中看到的, 有下面一个疑问:




    源码在这里: https://github.com/github/hubot/blob/master/docs/scripting.md#making-http-calls
    3 replies    1970-01-01 08:00:00 +08:00
    duhastmich
        1
    duhastmich  
       Sep 1, 2013   ❤️ 1
    .get() (err, res, body) ->
    get() 返回的是个接受一个callback作为参数的函数,可以能get() 本身还要接受参数
    duhastmich
        2
    duhastmich  
       Sep 1, 2013
    跟coffeescript没有关系,是api设计
    FrankFang128
        3
    FrankFang128  
       Oct 20, 2013 via Android
    搜 柯里化
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2441 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 10:16 · PVG 18:16 · LAX 03:16 · JFK 06:16
    ♥ Do have faith in what you're doing.