H5移动端获取设备id兼容写法
时间:2020-08-26 17:28:06
收藏:0
阅读:423
1 let deviceId ="" 2 if (window.plus) { 3 deviceId = plus.device.uuid; 4 } else { 5 // 兼容老版本的plusready事件 6 document.addEventListener( 7 "plusready", 8 function () { 9 deviceId = plus.device.uuid; 10 }, 11 false 12 ); 13 }
原文:https://www.cnblogs.com/web-wy/p/13566209.html
评论(0)