JavaScript determines whether or not wifi status

can JavaScript determine the connection mode of the mobile terminal? Just like the uc browser, the video plays automatically in the wifi environment and manually clicks in the non-wifi environment. Can such a function be achieved? How is the UC browser implemented?

Apr.09,2021

navigator.connection.type === 'wifi'

possible values of navigator.connection.type:

bluetooth
cellular
ethernet
none
wifi
wimax
other
unknown

Unfortunately, this is only the draft stage. Currently has no browser implementation .


app can be judged, but the javascript inside the browser does not have this kind of api for the time being

securely, send a packet to the backend to determine whether the source of the request is the base station IP
. In addition, you can also find a way to start with the parameters such as connection speed, delay, etc.


navigator.connection
seems to be allowed

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5bb8f-5a69f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5bb8f-5a69f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?