// 从服务器获取数据 request('http://192.168.1.7:8080/getDemo', function(error, response, body) { console.log('error:', error); console.log('statusCode:', response && response.statusCode); console.log('body:', body); });