Now is a situation. When the app loads the page url, when the network error occurs during the loading process, the page cannot be loaded or it takes a long time to load due to network problems. How to judge such a situation through js and then give the corresponding prompt? , if successful, the page will be loaded normally.
Can be used
window.onload
or get
HTTP
status code