【发布时间】:2017-09-11 11:59:58
【问题描述】:
从 phantomJs 渲染文件名的字符数是否有限制?
var page = require('webpage').create();
page.open('http://github.com/', function() {
window.setTimeout(function(){
var filename = encodeURI('The code shown here is also available in various examples included with PhantomJS. You are also recommended to explore the use of PhantomJS for page automation, network monitoring, screen capture, and headless testing The code shown here is also available in various examples included with PhantomJS. You are also recommended to explore the use of PhantomJS for page automation, network monitoring, screen capture, and headless testing');
console.log('filename: ' + filename);
page.render(filename + ".png");
phantom.exit();}, 100);
});
此文件未通过 phantomJs 进行渲染。
有人可以帮忙吗?
【问题讨论】:
-
为什么不自己了解一下限制呢?
标签: phantomjs