Cordova Windows Phone 8.1:引导模式错误

Cordova Windows Phone 8.1: error with bootstrap modal

本文关键字:模式 错误 Windows Phone Cordova      更新时间:2023-09-26

我正试图在WindowsPhone 8.1上移植一个cordova应用程序,一切都很好(或多或少)。

现在我陷入了这个问题:我使用的是angular和bootstrap ui,但当我试图打开一个弹出窗口时(它在任何地方都有效,也在ie中),我得到了这个错误:

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.

我已经尝试过了:在win8应用程序中使用AppendTo/jquery-win8http://blog.jonathanchannon.com/2013/01/24/using-angularjsbackbonejs-in-windows-8-javascript-app/但这并没有奏效。

关于如何解决这个问题有什么建议吗?

我在启动的几个项目中也遇到过同样的问题——这种情况似乎会发生,尤其是在从Visual Studio运行应用程序的情况下。

我发现在主页中有效的一个技巧是在引用angular.js文件之前引用platformOverrides.js文件。

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