插件名称:cordova-plugin-sim
地址:https://www.npmjs.com/package/cordova-plugin-sim
说明:这个插件可以从sim卡中,获取
carrierName,countryCode,mcc,mnc,phoneNumber,callState,dataActivity,networkType,phoneType,simState
1.安装插件
cordova plugin add cordova-plugin-sim
2.使用
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
var dom = document.getElementById('deviceready');
window.plugins.sim.getSimInfo(function(res){
var html = [];
html.push('carrierName:'+res.carrierName);
html.push(