Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 使用节点webkit链接到网站_Javascript_Html_Node.js_Node Webkit - Fatal编程技术网

Javascript 使用节点webkit链接到网站

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

伙计们,我需要有人帮我完成一个完整的编码教程,介绍如何在windows操作系统上从node webkit桌面应用程序打开网站

对!!我搜索过,看到了gui.Shell.openExternal(“”),但我不知道如何链接它,尤其是使用html超链接(a)标记


谢谢

我终于找到了一种方法,这是我使用的代码

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');};这有帮助吗:
?这有帮助吗: