簡體   English   中英

Cordova Windows Phone 8.1:引導模態錯誤

[英]Cordova Windows Phone 8.1: error with bootstrap modal

我正在嘗試在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-win8,以及http://blog.jonathanchannon.com/2013/01/24/using-angularjsbackbonejs-in-windows-8-javascript-app/沒有工作。

關於如何解決此問題的任何建議?

我在開始的幾個項目中都遇到了同樣的問題-尤其是如果您從Visual Studio運行應用程序,這似乎會發生。

一個招,我發現,工作是在你的主頁(你將包括所有你的JavaScript引用)是參照angular.js文件之前引用platformOverrides.js文件。

應該在編譯時從項目中包含的各種合並中生成platformOverrides.js

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM