phantomjs 入门尝试

来源:互联网 发布:开源直播app源码 编辑:程序博客网 时间:2024/06/16 22:10

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:
这里写图片描述

第一天先这样吧。
这里的文章写得很不错

http://www.cnblogs.com/front-Thinking/p/4321720.html

0 0