我一直在研究PDF閱讀器在android phonegap兩天以來..我剛剛phonegap..child瀏覽器插件正在工作,但PDF文件鏈接是在瀏覽器中出現一個空白頁面。我添加了插件和手機版本的coredova 2.0.0,並添加了插件..我錯了嗎?任何人都可以解決我的問題。提前感謝。兒童瀏覽器沒有顯示在Android手機瀏覽器中的PDF內容
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Child Browser Example</title>
<script type="text/javascript" charset="utf-8" src="cordova-2.0.0.js"></script>
<script type="text/javascript" charset="utf-8" src="childbrowser.js"></script>
<script type="text/javascript" charset="utf-8">
// Wait for PhoneGap to load
//
function Bodyload(){
document.addEventListener("deviceready", onDeviceReady, false);
}
// PhoneGap is ready
//
function onDeviceReady() {
console.log("PhoneGap is ready");
window.plugins.childBrowser.showWebPage("http://www.google.com/****/");
}
</script>
</head>
<body onload="Bodyload();" id="stage" class="theme">
</body>
</html>
了window.location = 「MY_URL」;正在使用版本ics但不能在2.2中工作 –