javascript - When the app loads the web page URL, how to determine whether the loading is successful through js?
世界只因有你
世界只因有你 2017-05-19 10:13:08
0
1
428

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.

世界只因有你
世界只因有你

reply all(1)
某草草

Can be used window.onload

or get HTTP status code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template