发送ajax请求,为什么前台的信息是the request has no 。。。?

图片说明

是不是你后台没有返数据?看看你请求后台的方法

后台没有返回json数据,中断吧

看字面上的意思是你后天没有返回数据,你可以在success:function(data){}中打印一下返回的数据看看到底有没有

HttpResponse response = ServletActionContext.getResponse();
public static void write(HttpServletResponse response,Object o)throws Exception{
    response.setContentType("text/html;charset=utf-8");
    PrintWriter out=response.getWriter();
    out.print(o.toString());
    out.flush();
    out.close();
}