A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

© 不二晨 金牌黑马   /  2019-3-11 14:10  /  1114 人查看  /  1 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

1.对象转map,map转对象。



2.反射得到对象的值

String searchType=PropertyUtils.getPropertyType(obj, searchName).getSimpleName().toLowerCase();
                                  
3.decode的使用
URLDecoder.decode(request.getParameter("searchValue_"+i),"utf-8")
(1)js在页面上把数据var vv=encodeURI(encodeURI("要传到服务器端的是值"));(调用2次encodeURI)
href="<%=basePath%>recordManager/test_js_decodeURI.action?params="+vv

---------------------
【转载,仅作分享,侵删】
作者:xinyuebaihe
原文:https://blog.csdn.net/xinyuebaihe/article/details/78556034
版权声明:本文为博主原创文章,转载请附上博文链接!

1 个回复

倒序浏览
奈斯,感谢分享
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马