【发布时间】:2015-05-19 07:14:59
【问题描述】:
我是 Phantomjs 的新手,我刚刚下载了它的 Windows 版本。 我打开 bin 文件夹并在 phantomjs.exe 中运行命令:
phantomjs hello.js
但它给了我错误:期望一个标识符 bu 找到了“hello”
然后我运行这个命令:
hello.js
我收到此错误:找不到变量 hello
我的 hello.js 中有以下代码
console.log('Hello, world!');
phantom.exit();
我有 hello.js 和 phantomjs.exe 在同一个文件夹中,但是找不到 js 文件。我在网上搜索但找不到合适的解决方案。
感谢您的宝贵时间
【问题讨论】:
标签: javascript windows phantomjs