判断请求是否为ajax请求

request.getHeader("X-Requested-with") 如果返回值不为null则是ajax请求

posted @ 2017-05-13 17:09  新晋超星星  阅读(207)  评论(0编辑  收藏  举报