相关疑难解决方法(0)

从phantomjs获取更多信息"SyntaxError:Parse error"消息

我有一个很长的脚本,不是我写的.当我运行它时,我得到:

phantomjs file.js
SyntaxError: Parse error
Run Code Online (Sandbox Code Playgroud)

我检查了手册和--help,我能想到的最好的是:

phantomjs --debug=yes file.js
(irrelevant debug statement from CookieJar)
SyntaxError: Parse error
Run Code Online (Sandbox Code Playgroud)

有没有更好的方法来获得至少一个行号?或任何暗示?

phantomjs

53
推荐指数
3
解决办法
3万
查看次数

标签 统计

phantomjs ×1