Home > Back-end >  Log in general is to use an ajax request, then the server is to return a json object browser to dete
Log in general is to use an ajax request, then the server is to return a json object browser to dete

Time:09-22

For bosses to tell, because I saw someone else login to return a json object so I don't understand,,

CodePudding user response:

There are bosses know

CodePudding user response:

Can be, according to the scene to select,
After login successfully, it is to jump to the same page, there is no special operation, that is forwarded directly;
According to different users have different needs after login successfully, operation or display, such as access control, etc., that requires the server to request it again after the return data

CodePudding user response:

Using ajax just looks harmonious some on the operation, the login fails, there is no page refresh operation,
  • Related