var request = require(‘request‘); request(‘http://www.xxxxxxxx.com‘, function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body) } })
命令行执行本文件输出页面
var request = require(‘request‘); request(‘http://www.xxxxxxxx.com‘, function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body) } })
命令行执行本文件输出页面
原文:https://www.cnblogs.com/chaser-li/p/8337977.html