我已經使用iframe在我的android phonegap應用程序中打開網頁。當iframe打開時突然如果網絡連接失敗,則顯示錯誤爲'安全連接不能成立(http://www.google.com)「。和應用程序力量關閉。iframe強制關閉android phonegap中的應用程序
這裏是我的代碼:
var iframe = document.createElement("IFRAME");
iframe.setAttribute("src", "http://www.google.com");
$("#IframeDiv").append(iframe);
請指導me.Thanks提前。
是谷歌網站來到你的移動設備 –