关于cordova检测网络 connection的问题 求各位大神解答
var states = {};后面的带完不运行,alert()不出,改成statesUNKNOWN]= 'Unknown connection';statesETHERNET] = 'Ethernet connection';statesWIFI] = 'WiFi connection';
statesCELL_2G]= 'Cell 2G connection';
statesCELL_3G]= 'Cell 3G connection';
statesCELL_4G]= 'Cell 4G connection';
statesCELL] = 'Cell generic connection';
statesNONE] = 'No network connection';之后永远都会显示Unknown connection 怎么回事 坐等各位大神解答
正常应该可以,你手机运行的吗,看看官方文档是不是变了
页:
[1]