0
웹 개발과 Phonegap/Cordova에 익숙하지 않습니다. 아래의 코드에서는 테이블이 버전, uuid 등으로 저장 될 것으로 예상하고 있지만 빈 열을 얻고 있습니다.ID 요소가 표시되지 않습니다
<!DOCTYPE HTML>
<html>
<head>
<title> Phone Gap </title>
<script type="text/javascript" src="cordova-1.9.0.js"></script>
<script type="text/javascript">
function onDeviceReady() {
document.getElementById("deviceName").innerHtml=device.name;
document.getElementById("version").innerHtml=device.cordova;
document.getElementById("uuid").innerHtml=device.uuid;
}
function init() {
document.addEventListener("deviceready", onDeviceReady, false);
}
</script>
</head>
<body onLoad="init()">
<h1>Device Info </h1>
<table border="1">
<tr>
<td>Device Name</td>
<td id="deviceName"></td>
</tr>
<tr>
<td>Version</td>
<td id="version"></td>
</tr>
<tr>
<td>UUID</td>
<td id="uuid"></td>
</tr>
</table>
</body>
</html>