简体   繁体   中英

How to use cordova plugin in react.js page

Excuse me,Is this problem solved? I also have the same troubles.I use cordova-plugin-network-information

let networkState = window.navigator.connect.type; 
alert(networkState);

The result is unknown.

在浏览器中,网络状态始终为未知。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM