Javascript 使用节点webkit链接到网站
伙计们,我需要有人帮我完成一个完整的编码教程,介绍如何在windows操作系统上从node webkit桌面应用程序打开网站 对!!我搜索过,看到了gui.Shell.openExternal(“”),但我不知道如何链接它,尤其是使用html超链接(a)标记Javascript 使用节点webkit链接到网站,javascript,html,node.js,node-webkit,Javascript,Html,Node.js,Node Webkit,伙计们,我需要有人帮我完成一个完整的编码教程,介绍如何在windows操作系统上从node webkit桌面应用程序打开网站 对!!我搜索过,看到了gui.Shell.openExternal(“”),但我不知道如何链接它,尤其是使用html超链接(a)标记 谢谢 我终于找到了一种方法,这是我使用的代码 var gui=require('nw.gui') 在html中链接的a标记中,创建一个id=“GoToWebsite” document.getElementById('GoToWebsite
谢谢 我终于找到了一种方法,这是我使用的代码 var gui=require('nw.gui') 在html中链接的a标记中,创建一个id=“GoToWebsite”
document.getElementById('GoToWebsite')。onclick=function(){gui.Shell.openExternal('http://www.nickzom.org');}; 我终于找到了一种方法,这里是我使用的代码 var gui=require('nw.gui') 在html中链接的a标记中,创建一个id=“GoToWebsite” document.getElementById('GoToWebsite')。onclick=function(){gui.Shell.openExternal('http://www.nickzom.org');};这有帮助吗:
…
?这有帮助吗:…
?