如何从node-webkit应用程序打开浏览器窗口?
我有一个桌面应用程序,使用node-webkit打包。 我需要在点击链接时打开用户的默认浏览器。 我在用
window.open("www.google.com")
但这会打开一个新的node-webkit窗口而不是打开浏览器窗口。 如何打开浏览器窗口?
要在用户的默认浏览器中打开链接,可以使用gui.Shell.openExternal("http://website.com")
。 查看gui.Shell的文档。
我有一个桌面应用程序,使用node-webkit打包。 我需要在点击链接时打开用户的默认浏览器。 我在用
window.open("www.google.com")
但这会打开一个新的node-webkit窗口而不是打开浏览器窗口。 如何打开浏览器窗口?
要在用户的默认浏览器中打开链接,可以使用gui.Shell.openExternal("http://website.com")
。 查看gui.Shell的文档。