Coo*_*ter 2 extjs sencha-touch windows-8 hybrid-mobile-app
我想知道如何在windows 8 metro app项目中使用Sencha Touch Frame与Windows JS项目.
当我尝试将sencha Touch添加到html页面时,我收到异常
Unable to add dynamic content. A script attempted to inject dynamic content, or elements previously modified dynamically, that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content, or explicitly create elements and attributes with a method such as createElement. For more information, see http://go.microsoft.com/fwlink/?LinkID=247104.
Run Code Online (Sandbox Code Playgroud)
如果没有办法使用Sencha触摸框架有任何方法可以添加Sencha ExtJS到Windows 8 metro应用程序.
因为我们还需要为所有主要的智能手机平台提供支持.
欢迎提出建议.
更换
document.write(content);
Run Code Online (Sandbox Code Playgroud)
同
MSApp.execUnsafeLocalFunction(function () {
document.write(content);
});
Run Code Online (Sandbox Code Playgroud)
在我们的应用程序中包含的developement.js或testing.js或production.js中,我们会做到这一点.特别是我们需要创建一个带有document.write(content)的函数()作为该函数内部的语句,然后将该函数作为参数传递给MSApp.exeUnsafeLocalFunction()将执行该操作.
| 归档时间: |
|
| 查看次数: |
1117 次 |
| 最近记录: |