1.安装 cordova plugin add cordova-plugin-device 2. 添加按钮 <button id="device">获取设备信息</button> 3. document.addEventListener('deviceReady',function(