electron 用默认浏览器打开链接

使用默认浏览器打开electron中的链接

const { shell } = require('electron');
const uri = "http://baidu.com"
shell.openExternal(url);

 

posted @ 2021-09-13 17:41  TaurusBoy  阅读(1111)  评论(0)    收藏  举报