nodejs使用Phantomjs爬取动态页面
e = require('webpage').create();page.open('http://github.com/', function() { page.render('github.png'); phantom.exit();});还有其他一些API会对 page.render() 产生影响,如:page.zoomFactor Number: 设置缩放比率page.clipRect Object:设置输出的矩形区域,例如:page.clipRect = { top: 14, left: 3, width: 400, height: 300 };