首页 > 解决方案 > 为什么这个 .js 代码在我运行时没有打开浏览器?

问题描述

我想通过此代码打开网站,但它不起作用。有什么问题?没有显示错误。

const Nightmare = require('nightmare');
var d = Nightmare({show:true});

d.goto('https://duckduckgo.com').wait(3000).end().then(result => {});

标签: node.jsubuntunightmare

解决方案


推荐阅读