此question讨论了链接请求,但它正在使用mocha
。
如何在不使用superagent
或Mocha
的情况下链接it
个请求(在最终方法中调用其他其他API)?
当我进行链接时
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。