2014年5月8日
摘要: 1 window事件2 window.onload=function(){alert("页面创建中****");};3 window.onunload=function(){alert("页面卸载中****");};4 window.onbefor... 阅读全文
posted @ 2014-05-08 14:13 wf110 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1 9 15 16 17 阅读全文
posted @ 2014-05-08 14:10 wf110 阅读(37055) 评论(0) 推荐(1) 编辑
  2014年5月7日
摘要: public class JdbcUtil { private static ComboPooledDataSource dataSource =new ComboPooledDataSource(); public static ComboPooledDataSource getDataSourc... 阅读全文
posted @ 2014-05-07 14:31 wf110 阅读(27715) 评论(0) 推荐(0) 编辑
  2014年5月6日
摘要: 1 Topic topic=new Topic(); 2 Enumeration enums=request.getParameterNames(); 3 try { 4 while(enums.hasMoreElements... 阅读全文
posted @ 2014-05-06 10:25 wf110 阅读(307) 评论(0) 推荐(0) 编辑
  2014年5月5日
摘要: 1 //varStat代表 遍历typeListDesc集合所用到的方法2 3 5 6 ${stat.count}7 ${type.name}8 ... 阅读全文
posted @ 2014-05-05 20:04 wf110 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1 HttpServletRequest req=(HttpServletRequest)request; 2 HttpServletResponse res=(HttpServletResponse)response; 3 4 String referer=re... 阅读全文
posted @ 2014-05-05 16:08 wf110 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 利用token构想,首先在jsp页面定义token字符串,在客户端和服务器最开始的时候都是一样的,然后通过servlet处理判断它们相同的话 就更新,然后删除服务器端的token。 以后每次刷新进入servlet的时候 服务器的token不存在所以 不继续增加点击数了。在外面页面定义 1 ... 阅读全文
posted @ 2014-05-05 16:04 wf110 阅读(410) 评论(0) 推荐(0) 编辑
  2014年4月22日
摘要: Comparable 用作默认的比较方式 Comparator 用作自定义的比较方式,当默认的比较方式不适用时或者没有提供默认的比较方式,使用Comparator就非常有用。 像Arrays和Collections中的排序方法,当不指定Comparator时使用的就是默认排序方式,也就是使用Comp... 阅读全文
posted @ 2014-04-22 15:03 wf110 阅读(185) 评论(0) 推荐(0) 编辑
  2014年4月21日
摘要: http://www.felix021.com/blog/read.php?2040下面以字符串12212321为例,经过上一步,变成了 S[] = "$#1#2#2#1#2#3#2#1#";然后用一个数组 P[i] 来记录以字符S[i]为中心的最长回文子串向左/右扩张的长度(包括S[i]),比如S... 阅读全文
posted @ 2014-04-21 18:02 wf110 阅读(199) 评论(0) 推荐(0) 编辑
  2014年4月20日
摘要: Permutation SequenceTotal Accepted:6325Total Submissions:29550My SubmissionsThe set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and... 阅读全文
posted @ 2014-04-20 19:13 wf110 阅读(1525) 评论(0) 推荐(0) 编辑