var page = require('webpage').create();
page.open('http://qq.com', function () {
page.render('example.png');
phantom.exit();
});
摘自 http://www.tuicool.com/articles/beeMNj/
更多信息
http://javascript.ruanyifeng.com/tool/phantomjs.html
https://github.com/ariya/phantomjs