connection.getAllNets获取所有处于连接状态的网络列表,具体使用可参考:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-connection-V5\#connectiongetallnets
connection.getAllNets获取所有处于连接状态的网络列表,具体使用可参考:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-net-connection-V5\#connectiongetallnets