- 博客(7)
- 资源 (3)
- 收藏
- 关注
原创 邮箱正则
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
2014-07-29 10:51:01 106
原创 sql查出的数据封装到另一个实体中
List<Test> list = gradeCourseDao.session().createQuery("select count(id) as count,courseGrade.id as id1,courseStructure.id as id2 from CourseKnowledgeBlock group by courseGrade.id,courseStruc...
2014-07-17 15:05:40 611
原创 table 合并表格
jquery-latest.js" !function($){ $.fn.rowspan=function(options){ var defaults = {} var options = $.extend(defaults, options); this.each(function () { var tds=$(this).find...
2014-07-15 17:45:03 126
原创 判断一个字段是否有相同的数据
select * from table as a where exists(select 1 from table where name = a.name group by name having count(*) > 1)
2014-07-07 17:33:54 1201
原创 汇总常用的jQuery操作Table tr td方法
虽然现在DIV+CSS进行页的布局大行其道,但是很多地方使用table还是有很多优势,用table展示数据是比较方便的,下面汇总了jQuery操作Table tr td常用的方法,熟记这些操作技巧,下次再使用的到时候,会让你如鱼得水,提高开发效率。 1.鼠标移动行变色 $("#table1 tr").hover(function(){ $(this).children("...
2014-07-07 11:03:33 599
原创 不同对象的set拷贝
a,b为对象 BeanUtils.copyProperties(a, b); 如果这里的BeanUtils是org.springframework.beans.BeanUtils,a拷贝到b。 如果BeanUtils是org.apache.commons.beanutils.BeanUtils,b拷贝到a。 ...
2014-07-05 19:28:19 139
原创 select选择option的全部值
var objUser=document.getElementById('usergradeid'); var optionUser=objUser.options; for(var i=2,len=optionUser.length;i<len;i++){ var opt = optionUser[i]; selUserIdAll+=opt.value+"...
2014-07-02 14:00:31 238
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人