PhantomJS 使用 一、下载安装 1. phantomJS-2.1.1 官方下载 2.VS项目中安装 二、测试1 截取网页图片 一、下载安装 1. phantomJS-2.1.1 官方下载 地址:http://phantomjs.org/download.html 2.VS项目中安装 将下载的文件解压缩后,复制到项目文件夹下 二、测试1 截取网页图片 1.编写code.js文件 var page = require('webpage').create(), system = require('system'), url; url = system.args[1]; phantom.outputEncoding