[UWP] [JS] Windows应用商店应用,prviate网络,内联JavaScript问题(Sencha 6.5.2) [英] [UWP][JS]Windows Store apps, prviate network, inline javascript problems (Sencha 6.5.2)

查看:99
本文介绍了[UWP] [JS] Windows应用商店应用,prviate网络,内联JavaScript问题(Sencha 6.5.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

 

几个月前,我们修了一个客户使他们能够在他们的专用网络上使用我们的Win10应用程序。当我们打包应用程序来完成此操作时,我们启用了privateNetworkClientServer设置
。作为这样的副作用,我们不得不将另一个设置更改为使用"本地模式",因为这是windows store app验证的要求。通过使用本地模式,应用程序将禁止内嵌javascript。 

我们目前正在升级此Win10应用程序以使用Sencha 6.5.2。  Sencha 6.5.2使用内联javascript来处理DOM事件,这就是为什么我们在Win10上没有触发
的事件时遇到问题。 这将导致我们将来为此Win10应用程序提交更新时出现问题,因为很可能WIndows Store会拒绝我们的应用程序更新,因为Sencha 6.5.2使用的内联javscript在Windows应用商店中不受欢迎。

We are currently upgrading this Win10 app to use Sencha 6.5.2.  Sencha 6.5.2 uses inline javascript to handle DOM events and this is why we are having problems with events not firing on Win10.  This is going to cause problems when we submit an update for this Win10 app in the future as it is likely that WIndows Store will reject our app update as Sencha 6.5.2 is using inline javscript which is frowned upon in the Windows Store.

我们有办法绕过这个吗?

Is there a way for us to get around this?

谢谢,

Ed

推荐答案

Ed,

目前似乎没有这样的解决方法。 出于安全原因,UWP js禁止使用内联javascript。这是设计的。

Currently it seems no such workaround for this.  UWP js disallow inline javascript for security reason. This is by design.

我建议您可能需要寻找其他一些可以实现此目的的框架。

I suggest that you might need to look for some other frameworks which could implement this.

祝你好运,

Roy


这篇关于[UWP] [JS] Windows应用商店应用,prviate网络,内联JavaScript问题(Sencha 6.5.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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