如何在像Edge或Chrome这样的浏览器中打开Javascript Windows通用应用程序的url?
使用“打开”JS函数(window.open)打开应用程序窗口中的url。我想在Edge或默认windows 10配置浏览器上打开它。
发布于 2016-05-21 19:29:38
您可以使用LaunchUriAsync方法。
Windows.System.Launcher.launchUriAsync( // note that .launchUriAsync() is lowercase
new Windows.Foundation.Uri("http://stackoverflow.com/"))
.then(function (success) {
if (success) {
// the launch succeeded
} else {
// the launch failed
}
});
https://stackoverflow.com/questions/37366536
复制相似问题