该文被密码保护。 阅读全文
posted @ 2018-01-10 16:45 薄焦尾 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 service层方法 4 5 public E outer(Function function) { 6 7 return dao.outer(function); 8 } 9 10 dao层方法 11 12 public E outer(Function function) { 13 14 return function.apply(this.... 阅读全文
posted @ 2018-01-10 16:24 薄焦尾 阅读(656) 评论(0) 推荐(0) 编辑
摘要: maxlength标签在ie上不兼容使用事件强制限制长度但用户体验不好,可以根据情况组合事件截取。 阅读全文
posted @ 2018-01-10 16:02 薄焦尾 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1 $(function(){ 2 $(document).bind("click",function(e){ 3 //id为menu的是菜单 4 if($(e.target).closest("#menu").length == 0 && $(e.target).closest("input").length == 0){ 5 //点击id为menu之外且id,则... 阅读全文
posted @ 2018-01-10 15:45 薄焦尾 阅读(269) 评论(0) 推荐(0) 编辑
摘要: var list= $('input:radio[name="name"]:checked').val(); //选择input中单选name为“name”的并且是选中状态的 index =$(document).data('index'); //把参数存入document中保存起来并在下一次中取出再用 index+=1 index =$(document).data(index);... 阅读全文
posted @ 2018-01-10 15:35 薄焦尾 阅读(164) 评论(0) 推荐(0) 编辑
摘要: nowrap="nowrap" //用于列表中td不许换行 maxlength="100" //用于输入框的长度限制 colspan="2" //用于td横向合并 rowspan="2" //用于td纵向合并 style="text-align: center;" //用于字体居中 style="display: none;" //用于隐藏但实际存在 readonly=... 阅读全文
posted @ 2018-01-10 15:31 薄焦尾 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1 //判断时间是否过期 2 function judgeTime(time){ 3 var strtime = time.replace("/-/g", "/");//时间转换 4 //时间 5 var date1=new Date(strtime); 6 //现在时间 7 var date2=new Date(); 8 //判断时间是否过期 9 return date1<d... 阅读全文
posted @ 2018-01-10 14:15 薄焦尾 阅读(4271) 评论(0) 推荐(0) 编辑
摘要: 1 package utils; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Calendar; 6 import java.util.Date; 7 import java.util.GregorianCalendar; ... 阅读全文
posted @ 2018-01-10 14:05 薄焦尾 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 字符串的格式为 yyyy-MM-dd HH:mm:ss 阅读全文
posted @ 2018-01-10 13:58 薄焦尾 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: 1 // 百度地图API功能 2 var map = new BMap.Map("allmap"); // 创建Map实例 3 map.centerAndZoom(new BMap.Point(106.20647861, 38.50262101), 13); // 初始化地图,设置中心点坐标和地图级别 4 map.addControl(new BMap.MapTypeContro... 阅读全文
posted @ 2018-01-10 13:49 薄焦尾 阅读(241) 评论(0) 推荐(0) 编辑