Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.0k views
in Technique[技术] by (71.8m points)

移动端前端如何获取用户网络状态特别是5G状态

移动端前端怎么获取到用户网络状态,特别是5G状态

需求是开发移动端前端通过javaScript获取用户网络状态的组件,目前使用调研的方法是使用navigator.userAgent与navigator.connection结合。但是兼容性不是很理想,IOS浏览器全都不兼容,另外5G的网络状态页不支持。想问各位大佬有什么好的实现方法或者经验吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...