PhantomJS 能不能实现将浏览器页面的某个div对应的显示区域截图
1个回答
展开全部
你也可以用nightmare
var Nightmare = require('nightmare');
var Screenshot = require('nightmare-screenshot');
var nightmare = new Nightmare();
nightmare
.viewport(1024, 700)
.goto(pageUrl)
.use(Screenshot.screenshotSelector(tempPath, '.question-answer-detail'));
var Nightmare = require('nightmare');
var Screenshot = require('nightmare-screenshot');
var nightmare = new Nightmare();
nightmare
.viewport(1024, 700)
.goto(pageUrl)
.use(Screenshot.screenshotSelector(tempPath, '.question-answer-detail'));
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询