如何同时使用Android和IOS来获取移动图像名称和路径名称
答案 0 :(得分:0)
使用插件“设备”,您可以访问手机的信息。
安装:
cordova plugin add cordova-plugin-device
用法:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log(device.cordova);
console.log(device.model );
console.log(device.platform );
console.log(device.uuid );
console.log(device.version );
console.log(device.manufacturer);
console.log(device.isVirtual );
console.log(device.serial );
}
来源:https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-device/