console.log('Hello, world!'); phantom.exit(); Save it as hello.js and then run it from the terminal or command prompt: phantomjs hello.js. The output is:
確定! 回上一頁