node.js - 为什么这个 .js 代码在我运行时没有打开浏览器?
问题描述
我想通过此代码打开网站,但它不起作用。有什么问题?没有显示错误。
const Nightmare = require('nightmare');
var d = Nightmare({show:true});
d.goto('https://duckduckgo.com').wait(3000).end().then(result => {});
解决方案
推荐阅读
- angular - Angular Reactive Form 为什么在输入侦听器之前调用 valueChanges
- gridfs - 使用 react-native-video 显示视频,使用 GridFSBucket 来自 express
- xcode - 如何在模拟器中从会话到会话保留 CoreData 条目?
- php - php中的多个条件
- javascript - 如何从多个模式中收集数据?- 领域
- microsoft-graph-api - 无法在 Microsoft Teams 中将 Planner 创建为选项卡
- sql - SQL获取分组的最大日期
- python - 晨星数据导入不会给出要求的所有日期价格
- css - 如何修复 Safari mix-blend-mode: color-dodge bug?
- flyway - Flyway 中的迁移文件大小有限制吗?