~~~ <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <script> // 扩展API是否准备好,如果没有则监听“plusready"事件 if(window.plus) { plusReady(); } else { document.addEventListener("plusready", plusReady, false); } // 扩展API准备完成后要执行的操作 function plusReady() { var mainActivity = plus.android.runtimeMainActivity(); var Settings = plus.android.importClass("android.provider.Settings"); console.log(Settings.Secure.getString(mainActivity.getContentResolver(), Settings.Secure.ANDROID_ID)); } </script> </head> <body> </body> </html> ~~~ ![](https://box.kancloud.cn/046c73179df2dc5bf5848f80847dc83d_621x266.jpg) #### 获取安卓imei ~~~ console.log(plus.device.imei); ~~~