1.console.log()

2.

    jQuery.ajax({
                     url:"/task1/com/guodiantong/servlet/JsonToJspServlet.action",
                     type:"POST",
                     success:function(data){

                     var obj=data;
                     console.log(obj);
                                                    },
                     error:function(XMLHttpRequest, textStatus, errorThrown){
                     console.log(errorThrown);
                                                                                                       }
                    })
在方法2中,就能通过控制台console输出异常的原因。

相关文章:

  • 2022-12-23
  • 2021-04-07
  • 2021-10-13
  • 2022-12-23
  • 2021-12-16
  • 2022-02-02
  • 2021-07-11
猜你喜欢
  • 2022-02-08
  • 2021-06-13
  • 2021-11-28
  • 2022-12-23
  • 2021-11-23
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案