上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 技术网站:1.淘宝技术部:http://rdc.taobao.org2.github: http://github.com3.CocoaChina: htthttp://stackoverflow.com/p://www.cocoachina.com4.http://www.raywenderlic... 阅读全文
posted @ 2015-05-21 17:52 rookie_d 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 鼠标放到图片后,会出现悬停提示,悬停提示内可以是图片,从代码实现思路上来说,本代码很有创意,代码很精简,如果原图你强制变为小图的话,那么当鼠标放上去以后,会放大出大图,实际上加载的是同一张图片,因此这决定了这款代码在加载速度上有些影响。http://www.codefans.net/jscss/co... 阅读全文
posted @ 2015-05-15 10:27 rookie_d 阅读(394) 评论(0) 推荐(0) 编辑
摘要: myeclipse自定义java注释:Window->Preference->Java->Code Style->Code Template然后展开Comments节点就是所有需设置注释的元素-----------------文件(Files)注释标签:/***@Project: ${project... 阅读全文
posted @ 2015-05-13 16:24 rookie_d 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1、Some projects cannot be imported because they already exist in the workspace2、Some projects were hidden because they exist in the workspace director... 阅读全文
posted @ 2015-05-13 14:27 rookie_d 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 在使用iterator.hasNext()操作迭代器的时候,如果此时迭代的对象发生改变,比如插入了新数据,或者有数据被删除。则使用会报以下异常: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.... 阅读全文
posted @ 2015-05-12 17:57 rookie_d 阅读(254) 评论(0) 推荐(0) 编辑
摘要: importjava.util.ArrayList; importjava.util.Iterator; importjava.util.List; /** *遍历集合List *@author够潮 * */publicclassDemo35{ /** *@paramargs */publicsta... 阅读全文
posted @ 2015-05-12 17:56 rookie_d 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 一、在请求页面的请求参数需要用encodeURI进行转码,然后在接收请求的页面需要进行字符集转换。本例中的请求和接收页面的字符集都是UTF-8:1.请求的JSP页面用JavaScript的encodeURI()方法将参数转码:function toView(param){ var encodepar... 阅读全文
posted @ 2015-05-12 16:31 rookie_d 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: 项目中都会用到编号或者编码。生成编码需要一定格式,但这个不是难点,主要的难点在于如何控制编码不重复。先贴一段生成流水号的代码package com.ra.testClass;import java.text.DecimalFormat;import java.text.SimpleDateForma... 阅读全文
posted @ 2015-05-11 11:44 rookie_d 阅读(785) 评论(0) 推荐(0) 编辑
摘要: 1.Calendar 转化 String//获取当前时间的具体情况,如年,月,日,week,date,分,秒等 Calendar calendat = Calendar.getInstance();SimpleDateFormat sdf = new SimpleDateFormat("yyyy-M... 阅读全文
posted @ 2015-04-29 10:19 rookie_d 阅读(158) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); //获取前月的第一天 Calendar cal_1=Calendar.getInstance();//获取当前日期 cal_1.add(Calendar.MONTH,... 阅读全文
posted @ 2015-04-29 10:17 rookie_d 阅读(407) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页