2012-12-10 24 views

回答

2
// 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 
     } 
    }); 

这是否做到这一点?

相关问题