【发布时间】:2016-09-01 07:44:45
【问题描述】:
我正在使用剑道手机,我是新手,我在谷歌中搜索了有关获取设备 UUID 的信息,我得到了它并尝试使用它,它显示了一个名为 Uncaught ReferenceError: device is not defined下面需要帮助是我的代码
当我安装在安卓操作系统而不是模拟器中时它可以工作
document.addEventListener("deviceready", onDeviceReady, false);
var deviceUID
function onDeviceReady() {
deviceUID=device.uuid
console.log(deviceUID);
}
//app.js//
var app;
(function () {app = new kendo.mobile.Application(document.body, { skin: 'flat', });}());
【问题讨论】:
标签: kendo-ui phonegap-plugins cordova-plugins kendo-mobile