js函数没有错误,controller也返回了json数据,但是页面不显示返回的数据。 我遇到的情况是controller上边少了注解 @ResponseBody。添上后页面就能显示返回的json数据了。