利用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

你可能感兴趣的:(ant)