phantomjs 参考资料
Github:https://github.com/ariya/phantomjs/
download:http://phantomjs.org/download.html
api:http://phantomjs.org/api/
examples(important!):http://phantomjs.org/examples/
尝试步骤:
1.下载 phantomjs-2.1.1-windows.zip
2.解压后,在环境变量中Path配置phantomjs.exe的路径(关于为何要配置环境变量,底下的链接很有道理。我目前觉得-在执行phantomjs的时候,需要在目标js所在目录打开phantomjs.exe去执行,所以通过命令行比较方便),添加phantomjs.exe所在的Bin目录即可;
3.开始hello world:
第一天先这样吧。
这里的文章写得很不错