我想知道如何在Windows 8 Metro应用程序项目和Windows JS项目中使用Sencha Touch Frame。
当我尝试将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.
如果无法使用Sencha touch框架,则可以使用任何方法将Sencha ExtJS添加到Windows 8 Metro应用程序。
因为我们需要提供支持,所以所有主要的智能电话平台也都将提供支持。
欢迎提出建议。
更换
document.write(content);
与
MSApp.execUnsafeLocalFunction(function () {
document.write(content);
});
在developement.js或testing.js或production.js我们包括在我们的应用程序将这样做把戏。特别是,我们需要创建一个具有document.write(content)作为该函数内部语句的function(),然后将该函数作为MSApp.exeUnsafeLocalFunction()的参数来传递。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句