利用PhantomJS生成网站截图

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

posted @ 2015-05-28 15:12  Arliang  阅读(239)  评论(0编辑  收藏  举报