随笔分类 -  js_jsp

springMVC接受json并打开新页面
摘要:背景:框架中,两个web工程A,B,我的B工程开发了一个对外action接口,A来连,要实现的功能是,A的页面发起一个action请求,到达B的springmvc,通过验证后,打开一个B工程新的tab的新窗口 方案:B用form提交json字符串。A后台用String param(不用@Reques 阅读全文
posted @ 2018-11-28 18:34 pu20065226 阅读(681) 评论(0) 推荐(1) 编辑
jsp取addFlashAttribute值深入理解即springMVC发redirect传隐藏参数
摘要:结论:两种方式 a.如果没有进行action转发,在页面中el需要${sessionScope['org.springframework.web.servlet.support.SessionFlashMapManager.FLASH_MAPS'][0]['userId']} b.如果进行了acti 阅读全文
posted @ 2018-11-28 14:42 pu20065226 阅读(4591) 评论(0) 推荐(1) 编辑
jsp中文乱码
摘要:<%@page pageEncoding="UTF-8"%> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 阅读全文
posted @ 2018-10-17 17:29 pu20065226 阅读(107) 评论(0) 推荐(0) 编辑
jsp grid can not be used in this ('quirks') mode
摘要:设置: <!--设置IE文档模式 --> <meta http-equiv="X-UA-Compatible" content="IE=9"> 阅读全文
posted @ 2018-10-17 17:28 pu20065226 阅读(225) 评论(0) 推荐(0) 编辑
js对象及元素复制拷贝
摘要:1.数组及对象拷贝: 浅拷贝var b=$.extend(false,{},a);//对象浅拷贝 深拷贝:var b=$.extend(true,{},a);//对象深拷贝 对象合并:$.extend(a,b); 2.元素拷贝var tr=th.clone(); tr.find("th").chil 阅读全文
posted @ 2018-10-17 16:32 pu20065226 阅读(770) 评论(0) 推荐(0) 编辑
js中json字符串与对象的转换及是否为空
摘要:1.json对象(数组)转字符串 2.json字符串转对象JSON.parse(jsonstr); 3.判断json是否为空 var a={aa:111,bb:222}; if(JSON.stringify(a) != "{}") 或者利用 Object.keys(a).length>0 json数 阅读全文
posted @ 2018-10-17 15:57 pu20065226 阅读(614) 评论(0) 推荐(0) 编辑
js window.open隐藏参数提交
摘要:1.采用form方式提交 阅读全文
posted @ 2018-10-17 15:37 pu20065226 阅读(1558) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示