- 博客(9)
- 收藏
- 关注
转载 jQuery_validate_开始时间不得大于结束时间
1 "personContract.enddate"{compareDate:"#startdate"} 2 3 //结束时间不得小于开始时间 4 $.validator.methods.compareDate = function(value, element, param) { 5 var startDate = $(param).val();...
2014-02-21 14:37:00 231
转载 struts2 文件下载
java:private String fileName; //用作文件名 下载显示的时候用的 要提供get set方法public String download(){ //下载的入口 通知 Struts2.xml文件 找结果集是 return "download"; //download的结果 }public InputStream ...
2013-07-16 15:13:00 78
转载 CSS 控制换行
CSS: Word-wrap : normal | break-wordword-wrap:break-word;word-break:break-all;//控制辩解换行 //控制断词 中文无影响 英文长串会自动断词Word-wrap : normal break-word取值:normal :?...
2013-06-26 10:52:00 106
转载 ztreeDemo
ztreeDemojs:var setting = { view: { selectedMulti: false }, async: { enable: true, url:"${ctx}/production/accident/casualties...
2013-06-25 15:12:00 79
转载 JS实现刷新页面
1.刷新包含该框架的页面用 parent.location.reload(); 2.子窗口刷新父窗口详细出处参考:http://www.jb51.net/article/14397.htmself.opener.location.reload(); 3.本页刷新本页window.location.reload(); 4.如果想关闭...
2013-06-19 09:21:00 106
转载 动态代理改变 set map 原有的功能
SET 功能 根据其中对象的name 属性 去重 final Set<User> users = new HashSet<User>(); Set<User> set = (Set<User>)Proxy.newProxyInstance( HashSet.class.g...
2013-06-18 16:41:00 154
转载 各种瞎JB转
各种转换//String 转 int String str = "123456";int strInt = Integer.parseInt(str); //int 转 String 此方法使用 各种 类型 转 Stringint strInt = 123456;String str = String.valueOf(strInt);...
2013-06-18 16:30:00 81
转载 spring事物中配置"只读"
由于 spring + hibernate 中的数据库内容 都被封装成了 持久化对象 在spring控制的事物中 改变了 持久化对象的属性那么 hibernate 就要把持久化对象保存到数据库中 所以 我们为了避免这种情况 改变持久化对象的方法中 加上 一行注释就可以了@Transactional(readOnly=true)配置只读 转载于:https:/...
2013-06-18 09:22:00 131
转载 hibernate注解
1.时间戳 有好多种类型 TIMESTAMP代表 年月日 时分秒 1 @Temporal(TemporalType.TIMESTAMP)2 @Column(name = "APPRTIME")3 private Date apprtime; //审批时间2.给持久化类的字段添加一个普通字段 跟数据库没关系的字段1 @Transient2 privat...
2013-06-17 17:14:00 78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人