摘要: 过滤器的名字过滤器的路径(servlet) RejectedlP//过滤器初始化参数名RejectedlP 192.168.12.*/param-value>必须和上面的过滤器名字一致/course.htmpublic class CourseCheckFilter implements Filter { private Logger log=Logger.getLogger(this.getClass());public void destroy() { }@Overridepublic void doFilter(ServletRequest request, ServletResp 阅读全文
posted @ 2014-04-03 14:28 风中鸣,雨中行 阅读(218) 评论(0) 推荐(0) 编辑
摘要: String strAllImp= " [{"id":2,"name":"还不错","count":3}]";JSONArray arr = new JSONArray();if(StringUtils.isNotEmpty(strAllImp)){arr = JSONArray.fromObject(strAllImp);}for(int i=0;i<arr.size();i++){JSONObject obj = arr.getJSONObject(i);int jsonId = ob 阅读全文
posted @ 2014-04-03 14:04 风中鸣,雨中行 阅读(223) 评论(0) 推荐(0) 编辑
摘要: var getOs=function() { try{var u = window.navigator.userAgent.toLocaleLowerCase(),msie = /(msie) ([\d.]+)/,chrome = /(chrome)\/([\d.]+)/,firefox = /(firefox)\/([\d.]+)/,safari = /(safari)\/([\d.]+)/,opera = /(opera)\/([\d.]+)/,ie11 = /(trident)\/([\d.]+)/,b = u.match(msie)||u.match(chrome)||u.match( 阅读全文
posted @ 2014-03-25 14:58 风中鸣,雨中行 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 使用cookies可以设置全局变量 ,由于每次刷新变量都会为初始值,cookies可以作为全局变量的容器 阅读全文
posted @ 2014-03-17 18:04 风中鸣,雨中行 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 确保在 元素的onload事件中没有注册函数,否则不会触发$(document).ready()事件。可以在同一个页面中无限次地使用$(document).ready()事件。其中注册的函数会按照(代码中的)先后顺序依次执行 阅读全文
posted @ 2014-02-21 15:20 风中鸣,雨中行 阅读(130) 评论(0) 推荐(0) 编辑
摘要: try{document.domain="jincin.com"}catch(error){}需要在被调用的函数和调用函数出都要加入上面相同的语句下面看一下第二种跨域的解决方案,当然是自己在他人的方法下实验的,结果很好使该功能是解决了跨域的js修改iframe的高度head.htm(http://x... 阅读全文
posted @ 2014-01-09 18:53 风中鸣,雨中行 阅读(195) 评论(0) 推荐(0) 编辑
摘要: var theParent = document.getElementById("bq_ly"); theParent.parentNode.removeChild(theParent); 阅读全文
posted @ 2014-01-08 15:24 风中鸣,雨中行 阅读(1026) 评论(0) 推荐(0) 编辑
摘要: 1、说明:需要有某个div的Id为#div12、$(document).ready(function(){$(window).scroll(function(){if($(document).scrollTop()+1200 > $(document).height()) LoadMoreInfo();});});说明:LoadMoreInfo();是滚动条触发的事件滚动条事件可以用于瀑布流 阅读全文
posted @ 2014-01-03 17:20 风中鸣,雨中行 阅读(462) 评论(0) 推荐(0) 编辑
摘要: document.onkeydown=keyDownSearch;functionkeyDownSearch(e){//兼容FF和IE和OperavartheEvent=e||window.event;varcode=theEvent.keyCode||theEvent.which||theEvent.charCode;if(code==13){alert('回车');//具体处理函数returnfalse;}returntrue;}如果只是针对某个DIV层应用回车查询的话,可以将:document.onkeydown=keyDownSearch;改成:document.get 阅读全文
posted @ 2013-12-26 15:04 风中鸣,雨中行 阅读(258) 评论(0) 推荐(0) 编辑
摘要: FIND_IN_SET的使用,前面介绍过,distinct是结果去重复的函数,两者结合使用,却花费了我一天的光阴。1、先面试含有重复值正确的显示顺序select lIdfrom tbCourse1 as a left join tbCourseClassify as b on a.lId=b.lCourseId where (a.nUserType=1 or a.nUserType=0) and a.strServiceids like '%.0.%' and b.nType in (-1,10,9,11,12,18,19,32,1,2,3,4,5,6,7,8,52,53,54 阅读全文
posted @ 2013-10-12 14:28 风中鸣,雨中行 阅读(618) 评论(0) 推荐(0) 编辑