0
我正在开发具有一些URL-s的Windows应用商店应用程序。我只是想达到如果我点击其中的一个,我的应用程序将切换到Internet Explorer。在Windows Store应用程序中执行命令
有没有办法做到这一点?
的Sándor
我正在开发具有一些URL-s的Windows应用商店应用程序。我只是想达到如果我点击其中的一个,我的应用程序将切换到Internet Explorer。在Windows Store应用程序中执行命令
有没有办法做到这一点?
的Sándor
// The URI to launch
var uriToLaunch = "http://www.bing.com";
// Create a Uri object from a URI string
var uri = new Windows.Foundation.Uri(uriToLaunch);
Windows.System.Launcher.launchUriAsync(uri).then(
function (success) {
if (success) {
// URI launched
} else {
// URI launch failed
}
});
这是否做到这一点?