[UWP] [HTML] JavaScript通用Windows平台(UWP)应用的评级和评论 [英] [UWP][HTML]Ratings and Reviews for JavaScript Universal Windows Platform (UWP) app

查看:122
本文介绍了[UWP] [HTML] JavaScript通用Windows平台(UWP)应用的评级和评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何
提示我们的客户评价或查看我们的"
JavaScript"通用Windows平台(UWP)  app? 有什么
方式通过JS做到这一点吗?

How can we prompt our customers to rate or review our "JavaScript" Universal Windows Platform (UWP) app? Is there any way to do that through JS?

我找到了一个链接  https://docs.microsoft.com/en-us/ windows / uwp / monetize / request-ratings-and-reviews以使用C#

I found a link https://docs.microsoft.com/en-us/windows/uwp/monetize/request-ratings-and-reviews to prompt Review/rating using C#

我们是否有任何方式在" JavaScript"中使用C#代码通用Windows平台(UWP)。?

Do we have any way to use C# code in "JavaScript" Universal Windows Platform (UWP).?

推荐答案

您可以像这样使用此API的JS版本:

You could use the JS version of this API like this:

var Store = Windows.Services.Store;
Store.StoreRequestHelper.sendRequestAsync(Store.StoreContext.getDefault(), 16, "")
    .then(function (result) {
        if (result.extendedError == null) {
            if (result.response.status == "success") {
                //success
            }
        }
    }) 

祝你好运,

Roy


这篇关于[UWP] [HTML] JavaScript通用Windows平台(UWP)应用的评级和评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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