dataType: “json” won't work

前端 未结 7 1464
面向向阳花
面向向阳花 2020-12-10 16:19

I\'m trying to send back multiple variables from a php file to ajax using json in an array. The code in the php file works perfectly and does everything with my database lik

7条回答
  •  感动是毒
    2020-12-10 17:00

    Try defining the error handler as part of the $.ajax call

    $.ajax({
      ...,
      error: function(xml, error) {
        console.log(error);
      }
    });
    

    Then check your debugging console for any errors that can help you diagnose the problem.

提交回复
热议问题