摘要:
输入框不能为空 <input onblur="if(this.value.replace(/^ +| +$/g,'')=='')alert('不能为空!')"> 只能输入英文和数字<input onblur="if(/[^0-9a-zA-Z]/g.test(value))alert('有错')">< 阅读全文
摘要:
前端jsp文件代码: <link href="lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> <script src="lib/jquery/jquery-1.9.0.min.js" ty 阅读全文
摘要:
前端jsp文件代码: <link rel="stylesheet" href="css/demo.css" type="text/css"> <link rel="stylesheet" href="css/zTreeStyle.css" type="text/css"> <script src=" 阅读全文
摘要:
一:基于hql语法查询到的结果集为实体类集合。 String hql = " from 实体类名" ; List<实体类名> list = ygDeptService.findByHql(hql); //查询到的结果数据集 JSONArray js = JSONArray.fromObject(li 阅读全文
摘要:
select ID from 表名start with id =节点id connect by prior parentid = id 其中id为表中id标识,parentid为父节点id标识 阅读全文
摘要:
select ID from 表名start with id =节点id connect by prior id= parentid 其中id为表中id标识,parentid为父节点id标识 阅读全文
摘要:
二话不说先上方法体及其内容。 public List findDeptBySql(final String name) { return getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibern 阅读全文
摘要:
struts配置文件 <result name="outputPaper" type="stream"> <param name="inputStream">excelStream</param> <param name="ContentType">application/vnd.ms-excel< 阅读全文
摘要:
前端代码: <form method="post" action="xxx.action" enctype="multipart/form-data"> <input type="file" name="inputExcel" /> </form> 后端代码: private File inputE 阅读全文
摘要:
java.util.Date d = new java.util.Date(); java.sql.Date date = new java.sql.Date(d.getTime()); //会丢失时分秒 Time time = new Time(d.getTime()); //会丢失年月日 Tim 阅读全文