前端页面学习记录
1、函数
4 String requestedWith = req.getHeader("X-Requested-With"); 5 boolean isAjax = requestedWith != null ? "XMLHttpRequest".equals(requestedWith) : false;
上面的X-Requested-With是判断是否是ajax还是传统的http请求
if (request.getHeader("x-requested-with") != null && request.getHeader("x-requested-with").equalsIgnoreCase("XMLHttpRequest")) { out.print("该请求是 AJAX 异步HTTP请求。"); }else{ out.print("该请求是传统的 同步HTTP请求。"); }
沈永盛: echart 整合ssm框架学习
http://echarts.apache.org/zh/index.html
https://blog.csdn.net/abc_cba_aaa/article/details/78355094
你是一只猪