与没有摩卡的Superagent链接请求
这个问题谈论链接请求,但它使用mocha
。
我怎么能连锁superagent
请求(调用另一个其余的API在最后的方法),而不使用Mocha
或it
?
当我做链接
superagent.post( URL ).send( DATA ).end( function(err,res){ console.log("1"); superagent.post( URL1 ).send( DATA1 ).end( function(err,res){ console.log("2"); }); });
控制台上没有显示console.log。