2014-11-05 80 views
0

我想在WindowsPhone 8.1上移植一个科尔多瓦应用程序,并且一切都工作(或多或少)罚款。科尔多瓦Windows Phone 8.1:与引导模式的错误

现在我在这个问题很stucked:我使用的角度和引导的UI,但是当我尝试打开一个弹出窗口(即作品无处不在,也即)我得到这个错误:

Error: 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. 

我已经试过了这个:Using AppendTo/jquery-win8 in Win8 apps和这个http://blog.jonathanchannon.com/2013/01/24/using-angularjsbackbonejs-in-windows-8-javascript-app/但没有奏效。

有关如何解决此问题的任何建议?

回答

2

我在开始的几个项目中遇到了同样的问题 - 这似乎发生在您从Visual Studio运行应用程序时尤其如此。

的一个招,我发现,工作是在你的主页(你将包括所有你的JavaScript引用)是参照angular.js文件之前引用platformOverrides.js文件。

platformOverrides.js应该在编译时从您包含在项目中的各种合并中生成