nodejs 同步request
npm isntall sync-request
var request = require(‘sync-request‘); var res = request(‘GET‘, ‘http://www.baidu.com‘); console.log(res.getBody().toString());
Node.js 同步访问Http接口
原文:https://www.cnblogs.com/blogs0104/p/14392741.html