你看起来不像是nodejs程序猿啊?
你怎么用其他语言的思路写node?
我突然没想通要怎么搞。。。
var urlAry = [{
name: 1,
url: "mongodb://localhost:27017:test1"},
{
name: 2,
url: "mongodb://localhost:27017:test2"},
{
name: 3,
url: "mongodb://localhost:27017:test3"},
]
然后每个数据库一个test表,查询里面的{test:"123"}
现在没有思路了。。。求教。。。不能在callback里面写this.body={}吧?
npm里找一个发起同步请求的包,然后就就同步一个一个执行,拼凑成一个json