适用于Windows的Phantomjs安装 [英] Phantomjs installation for Windows

查看:117
本文介绍了适用于Windows的Phantomjs安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从此处下载了适用于Windows的"phantomjs-1.7.0-windows.zip".

I downloaded the "phantomjs-1.7.0-windows.zip " for Windows from here.

我什至在环境变量中设置提取文件夹的路径.但是,当我尝试在phantomjs.exe命令提示符下输入任何类似phantomjs --version的命令时,出现解析错误". (我的Windows是64位.)

I even set up the path of the extracted folder in the environment variables. But I am getting the "parse error" when I try to enter any command like phantomjs --version in the phantomjs.exe command prompt. (My Windows is 64 bit.)

为什么会引发错误?

推荐答案

在Windows 命令提示符中键入phantomjs --version.

Type phantomjs --version in the Windows command-prompt.

如果通过执行phantomjs.exe启动PhantomJS,则您现在处于PhantomJS交互模式(REPL)中.在此提示下,您应该输入JavaScript代码.

If you launch PhantomJS by executing phantomjs.exe, you are now inside PhantomJS interactive mode (REPL). In this prompt, you should type JavaScript code.

这篇关于适用于Windows的Phantomjs安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆