标签:style class blog c code java
/** * isAjaxRequest:判断请求是否为Ajax请求. <br/> * @param request 请求对象 * @return boolean * @since JDK 1.6 */ public boolean isAjaxRequest(HttpServletRequest request){ String header = request.getHeader("X-Requested-With"); boolean isAjax = "XMLHttpRequest".equals(header) ? true:false; return isAjax; }
java判断请求是否为ajax请求,布布扣,bubuko.com
标签:style class blog c code java
原文地址:http://www.cnblogs.com/ysdxz207/p/3736430.html