1

我创建了buttonin appbarforRate and Review选项。我按如下方式制作了我的javascript;

document.getElementById("rate").addEventListener("click", function () { 
"ms-windows-store:REVIEW?PFN=[my-package-name]"
}); 

但是,它不会导航到评分和评论页面。我知道一旦从商店下载了应用程序,我们就可以对应用程序进行评分和审查。但是,我需要知道我的代码对吗?

一旦我将它上传到商店,它会起作用吗?

4

1 回答 1

5

这可能正在解决您的问题:

    document.getElementById("rate").addEventListener("click", function () { 
                        var uriToLaunch = "ms-windows-store:REVIEW?PFN=your-package-name";
                        var uri = new Windows.Foundation.Uri(uriToLaunch);
                        var options = new Windows.System.LauncherOptions();
                        options.treatAsUntrusted = true;
                        Windows.System.Launcher.launchUriAsync(uri, options).then(
                            function (success) {
                                if (success) {
                                } else {
                            }
                        });
     });
于 2013-08-19T11:57:00.447 回答