首先,我们在本地或者服务器中安装PhantomJS -- 下载链接 - http://phantomjs.org/download.html 然后,我们可以按照PhantomJS官网中介绍一样,添加对应脚本, 文件名为:phantom.js var system = require('system'); var page = require('webpage').create(); var address, output, time; page.settings.userAgent = 'Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7'; page.viewportSize = { width:...