One - One Code All

Blog Content

mac安装phantomjs

Linux-Mac 前端相关   2018-07-02 19:38:32

可手动安装:

官网: http://phantomjs.org/download.html


mac自动安装:

brew install phantomjs

# 查看版本号
phantomjs -v

# 运行代码
phantomjs  hello.js

简单的hello.js:
console.log("Hello,world!");
phantom.exit();


# 退出:

phantom.exit()


上一篇:mpi编译时出现 MPI has not been declared 错误
下一篇:Sublime Text 中断程序的快捷键

The minute you think of giving up, think of the reason why you held on so long.