<! Doctype html> <html> <gead> <meta charset = UTF-8> <Title> My Device </Title> <Script Type = Text/Javascript CHARSET = UTF-8 sRC = Cordova.js> </script> <Script type = text/javascript charset = UTF-8> Function onload () {document.adDeventListener (DeviceReready, onDeviceReady, FALSE);} Function DeviceReady () {var mydiv = document.GetelementByid ('PROPS'); mydiv.Innerhtml = 'Device name:' + device.name + '<br />' + 'Device Phonegap:' + Device.phonegap + '<br />' + 'Device Platform:' + Device.platForm + '<br /> ' +' Device UUID: ' + Device.uuid +' <br /> ' +' Device Version: ' + Device.version +' <<br /> '} < /Head> <body (( )> <p ID = Props> Loading Device Properties ... </p> </body> </html>
Some of the information methods using PhoneGap to obtain devices above are all the contents of the editor shared with you. I hope to give you a reference, and I hope that everyone will support VEVB Wulin.com.