前端页面学习记录

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

posted @ 2021-02-18 11:25  臭猪  阅读(64)  评论(0编辑  收藏  举报