2
Nightmare文档没有指定如何设置browser的详细信息。如何设置Nightmare.js中的电子大小?
我猜这是这样的,但它不起作用。有任何想法吗?
const nightmare = new Nightmare({'show': show, 'BrowserWindow': {height: 900}});
Nightmare文档没有指定如何设置browser的详细信息。如何设置Nightmare.js中的电子大小?
我猜这是这样的,但它不起作用。有任何想法吗?
const nightmare = new Nightmare({'show': show, 'BrowserWindow': {height: 900}});
的文档不是得不得了清楚,但目的是为了表明噩梦选项都传递给BrowserWindow
,有效利用设置相同的选项。
换句话说,
const nightmare = new Nightmare({ show: show, height: 900});
...应该工作。