可手动安装:
官网: http://phantomjs.org/download.html
mac自动安装:
brew install phantomjs # 查看版本号phantomjs -v # 运行代码phantomjs hello.js简单的hello.js:console.log("Hello,world!");phantom.exit();
# 退出:
phantom.exit()