为 Windows 8(不是 Windows Phone 8)构建 Sencha Touch 应用程序 Microsoft Surface [英] Building Sencha Touch app for Windows 8 (not windows phone 8) Microsoft Surface

查看:17
本文介绍了为 Windows 8(不是 Windows Phone 8)构建 Sencha Touch 应用程序 Microsoft Surface的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想构建一个由 Sencha CMD 生成的简单 Sencha Touch-2.3.1 应用程序来运行它Windows 8.1 微软表面模拟器.

I want to build a a simple Sencha Touch-2.3.1 application generated by Sencha CMD to run it on Windows 8.1 Microsoft Surface Simulator.

1-我打开了 Visual Studio (2013) 并创建了一个新的 JavaScript Windows 应用商店项目.2-将生成的 Sencha Touch 应用程序文件复制到我的项目中.3-将起始页从 default.html 更改为 index.html.

1-I opened Visual Studio (2013) and created a new JavaScript Windows Store project. 2-Copied the generated Sencha Touch app files to my project. 3-Changed the start page from default.html to index.html.

然后我在模拟器上运行它,但应用程序挂在带有白点的蓝色加载屏幕上.我打开js控制台,日志里什么也没有.

I then ran it on the simulator, but the application hangs at the blue loading screen with white dots. I opened the js console and found nothing in the log.

从一开始的方法就错了吗?Sencha Touch 团队假设他们支持 Windows 8,但我找不到任何说明构建过程的文档.

Is the approach wrong from the beginning? Sencha Touch team Assume that they support windows 8, but I'm unable to find any documentation illustrating the building procedure.

如果需要任何进一步的信息,请告诉我,非常感谢您的贡献.

If any further info are needed let me know, your contribution is highly appreciated.

推荐答案

问题在于 Windows 8 内容安全策略 (CSP).

The issue is the Windows 8 content security policy (CSP).

我已经回答了类似的帖子之前,除了我写过的几篇博文(针对Ext JS,但原理相同):

I have answered similar posts before, in addition to a few blog posts I've written (specific to Ext JS, but the same principle):

简而言之,Sencha 框架都没有明确支持 Win8 CSP……但是通过一点点黑客攻击,您可以让它正常工作.

In short, neither of the Sencha Frameworks explicitly support the Win8 CSP... but with a little bit of hacking you can get it to work just fine.

这篇关于为 Windows 8(不是 Windows Phone 8)构建 Sencha Touch 应用程序 Microsoft Surface的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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