我已經爲iPhone的PhoneGap項目下面的代碼,它不會顯示在設備性能,device.uuid不working-電話差距
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<script src="cordova.2.9.1" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript">
function init(){
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
// do your thing!
alert("PhoneGap is working");
alert(device.cordova);
alert(device.uuid);
}
</script>
</head>
<body onload="onDeviceReady()">
</body>
</html>
這裏,第一次警報來正確而其他警報不工作,我的手機差距版本是2.9.0。請幫幫我,我不能往前走.Thanks
refer- http://docs.phonegap.com/en/3.0.0 /cordova_device_device.md.html#device.uuid – Suhas