device.uuid没有工作 - 电话差距

时间:2014-05-14 10:49:43

标签: cordova phonegap-plugins

我有一个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。请帮助我,我不能前进。谢谢

0 个答案:

没有答案