$.ajax statusCode

后端 未结 3 1305
萌比男神i
萌比男神i 2021-02-11 05:20

I have a problem in my code . This is part of it:

 function checkIfAvailable(username){
 var url = \"/checkAvail?user=\"+username;
 var ans =  $.ajax({
      url         


        
3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-11 05:36

    Message inside console.log("-1-1-1-1 WE GOT 404!") is same for both 404 and 200. change the message for 200 like console.log("Success.....")

提交回复
热议问题