如何从 Windows 8 WInJS 应用程序中启动 IE10 中的 URL? [英] How to launch a URL in IE10 from within a Windows 8 WInJS application?

查看:29
本文介绍了如何从 Windows 8 WInJS 应用程序中启动 IE10 中的 URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,但我一直无法找到答案.我想从我的 Windows 8 javascript 应用程序中使用 IE10 启动一个特定的 URL,即我的应用程序将被暂停,而 IE10 将启动.我如何使用 javascript 做到这一点?

this might be a silly question but I have not been able to find an answer. I want to launch a specific URL with IE10 from within my Windows 8 javascript application, i.e. my application will be suspended and IE10 will launch. How do I do that with javascript?

谢谢主题

推荐答案

var url = new Windows.Foundation.Uri("http://www.google.com")
Windows.System.Launcher.launchUriAsync(url);

这篇关于如何从 Windows 8 WInJS 应用程序中启动 IE10 中的 URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆