After ajax enters error, you can see the status code in neiwork, but you can't get it in the code.

Project encapsulates axios to handle error requests uniformly:

clipboard.png

consoleconsole
axiosJQajaxajaxneiwork:

clipboard.png

the passing god helps analyze what"s going on

Jul.27,2021

should be cross-domain

Menu