设备.不工作-电话缺口



我有一个iPhone phonegap项目的以下代码,它不显示设备属性,

<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。请帮帮我,我走不动了。谢谢

尝试更改

<body  onload="onDeviceReady()">

:

<body  onload="init()">

最新更新