2014年9月3日

Javascript 日期函数比较大小

摘要: 1 // 日期比较函数 格式:yyyy-MM-dd 2 function dateCompare(startdate, enddate) { 3 var arr = startdate.split("-"); 4 var starttime = new Date(arr[0], a... 阅读全文

posted @ 2014-09-03 18:08 zenger1025 阅读(749) 评论(0) 推荐(0)

2013年12月16日

javascript链接无效的两种方式

摘要: 例子源代码:1 2 3 bbb4 5 6 test17 test28 9 OK! 阅读全文

posted @ 2013-12-16 10:57 zenger1025 阅读(251) 评论(0) 推荐(0)

2013年10月9日

java commons组件 swfupload组件 文件上传 servlet jsp

摘要: 1.官网swfupload是php版本的,搞个jsp版本的。index.jsp: 1 3 5 6 7 SWFUpload Demos - Simple Demo 8 9 10 11 12 13 57 58 59 60 SWFUpload61 v2.2.062 63 64 65 Simple Demo66 67 This page demonstrates a simple usage of SWFUpload. 68 It uses the Queue Plugin to simplify uploading or c... 阅读全文

posted @ 2013-10-09 14:30 zenger1025 阅读(283) 评论(0) 推荐(0)

2013年9月25日

div中img水平垂直居中

摘要: 直接上html代码: 1 3 4 5 6 图片在div中[垂直和水平]居中 7 22 23 24 25 26 27 28 29 30 31 32 是不是垂直水平居中了,看起来舒服很多了。 阅读全文

posted @ 2013-09-25 10:53 zenger1025 阅读(246) 评论(0) 推荐(0)

2013年9月16日

jquery javascript 添加多个文件 html

摘要: 1 2 3 javascript:file add 4 5 17 18 19 20 file 1:21 22 23 24 效果图如下:finish! 阅读全文

posted @ 2013-09-16 15:43 zenger1025 阅读(238) 评论(0) 推荐(0)

2013年9月4日

maven 下载依赖包的源代码 命令

摘要: 1、使用maven的时候,你是否想要下载对应的源代码呢。用下面这个命令:2、在dos窗口进入工程pom.xml所在的目录,输入:mvn dependency:sources3、看到 BUILD SUCCESS,表示成功了。你就可以看任何依赖包的源代码了。 阅读全文

posted @ 2013-09-04 11:54 zenger1025 阅读(1278) 评论(0) 推荐(0)

2013年9月2日

Spring 3 EL Annotation 版本 简单maven工程

摘要: pom.xml: 1 4 4.0.0 5 com.zenger.spring 6 spring001 7 0.0.1-SNAPSHOT 8 9 4.8.210 3.1.1.RELEASE11 12 13 14 15 junit16 junit17 ${junit.v}18 19 20 21 org.springframework22 spring-core23 ${spri... 阅读全文

posted @ 2013-09-02 16:03 zenger1025 阅读(236) 评论(0) 推荐(0)

Spring 3 EL XML 版本 简单maven工程

摘要: pom.xml: 1 4 4.0.0 5 com.zenger.spring 6 spring001 7 0.0.1-SNAPSHOT 8 9 4.8.210 3.1.1.RELEASE11 12 13 14 15 junit16 junit17 ${junit.v}18 19 20 21 org.springframework22 spring-core23 ${spri... 阅读全文

posted @ 2013-09-02 15:57 zenger1025 阅读(318) 评论(0) 推荐(0)

2013年8月12日

commons-beanutils BeanUtils copyProperties 对象复制 使用

摘要: pom.xml: 1 4 4.0.0 5 test.beanutils 6 beanutils 7 0.0.1-SNAPSHOT 8 9 10 commons-beanutils11 commons-beanutils12 1.8.313 14 15 junit16 junit17 4.8.218 19 21 User.java: 1 package com.zjc.bean; 2 3... 阅读全文

posted @ 2013-08-12 11:49 zenger1025 阅读(812) 评论(0) 推荐(0)

2013年8月9日

hibernate :一对多 one-2-many 单向关联 实例 延迟加载 测试

摘要: 关系:用户 1 ------> n 地址User Address单向关联实例(入门使用):Maven工程结构如下:pom.xml: 1 5 4.0.0 6 com.zjc.hibernate 7 hibernate-one2many 8 0.0.1-SNAPSHOT 9 10 11 12 junit13 junit14 4.8.215 16 17 18 mysql19 ... 阅读全文

posted @ 2013-08-09 14:52 zenger1025 阅读(335) 评论(0) 推荐(0)

导航