Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Phantomjs中nodejs的__filename变量等价物是什么?我想获取当前正在执行的脚本的名称。
phantom.scriptName您可以使用或获取当前脚本名称system.args[0]。
phantom.scriptName
system.args[0]
如这里所说