【发布时间】:2017-01-01 13:09:03
【问题描述】:
我有一个 Node 服务器,我需要从 NodeJS 服务器调用一些 PhantomJS 命令。喜欢这个命令。
phantomjs phantom-server.js http://example.com
我在以下问题上得到了一些关于这个主题的答案。但目前还不清楚我必须为此提供哪些论据。
Is it possible to run PhantomJS from node.js as a command line argument
在这个例子中,有一条像 folloes 这样的线。
'一些其他参数(传递给 phantomjs 脚本)'
我不知道该传递什么。
【问题讨论】:
-
除了直接执行Phantomjs进程外,还可以使用server模块直接与server进程通信phantomjs.org/api/webserver/method/listen.html
标签: javascript node.js phantomjs