摘要: 1、添加验证方法 在jquery.validate.js文件中直接添加验证方法,例如: jQuery.validator.addMethod("Specialstring", function(value, element){ var pattern = new RegExp("[`~!@#$^&* 阅读全文
posted @ 2016-03-29 14:47 philonic 阅读(1744) 评论(0) 推荐(0) 编辑
摘要: /** * 要求:去掉List中为 0 的元素 */ //创建数组和空List Integer[] ars = {1,0,0,0,5,0,8,9,0,0,0,65,3,0,0}; List<Integer> lists = new ArrayList<Integer>(ars.length); // 阅读全文
posted @ 2016-08-10 11:31 philonic 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 一、科普定义(原文:http://903497571.iteye.com/blog/1874752) 这篇博文的两个主角“synchronized”和“读写锁” 1)synchronized 这个同步关键字相信大家都用得比较多,在这就不多说只做几点归纳: Java提供这个关键字,为防止资源冲突提供的 阅读全文
posted @ 2016-08-07 10:31 philonic 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Collections.sort(basicinfoList, new Comparator<MlisBasicinfo>() { @Override public int compare(MlisBasicinfo o1, MlisBasicinfo o2) { return o1.getBasi 阅读全文
posted @ 2016-08-07 10:19 philonic 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 在eclipse中加入tomcat,开debug模式非常好用,这里就不介绍了 最近eclipse的tomcat开debug模式就是启动不了,增加时间也不能解决,但是非debug模式就可以打开,我觉得是eclipse太坑 坑多了,就会慢慢摸索出解决办法。我就说几个我自己的方法。 1、关闭eclipse 阅读全文
posted @ 2016-04-27 17:12 philonic 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 页面有一个请求form: <form method="post" id="signin"> <label for="orderid">订单编号</label> <input id="oid" name="orderid" value="" title="orderid" tabindex="4" t 阅读全文
posted @ 2016-04-12 16:10 philonic 阅读(6749) 评论(3) 推荐(1) 编辑
摘要: 第一步:先选择主题“BlackLowKey”, 第二步:开chrome浏览器的debug,调试页面达到效果。 第三步:选择body标签,如下图: 把原来的背景图改为自己想要的,例如我是先上传到自己的相册,然后获取地址来显示的 body { background: url(http://images. 阅读全文
posted @ 2016-03-17 18:01 philonic 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Blog开张,以后会慢慢更新工作、学习遇到的问题,总结一些经验,观众老爷们多多支持!!! ^_^ 阅读全文
posted @ 2016-03-17 14:42 philonic 阅读(98) 评论(0) 推荐(0) 编辑