获取网络状态:
types[plus.networkinfo.CONNECTION_UNKNOW]="网络连接状态未知";
types[plus.networkinfo.CONNECTION_NONE]="未连接网络";
types[plus.networkinfo.CONNECTION_ETHERNET]="有线网络";
types[plus.networkinfo.CONNECTION_WIFI]="WIFI";
types[plus.networkinfo.CONNECTION_CELL2G]="2G";
types[plus.networkinfo.CONNECTION_CELL3G]="3G";
types[plus.networkinfo.CONNECTION_CELL4G]="4G";
console.log("Network: " + types[plus.networkinfo.getCurrentType()]);
m***@163.com
- 发布:2017-12-06 12:07
- 更新:2017-12-06 12:07
- 阅读:1441