摘要: function isEmpty(str){ if(str != null && str.Trim().length > 0){ return false; } return true; } 阅读全文
posted @ 2019-12-16 17:14 ZhiPeng007 阅读(181) 评论(0) 推荐(0) 编辑
摘要: $('input:text').attr("disabled","disabled");//设为不可用 $('input:text').removeAttr("disabled"); //取消不可用的设置 $('input:text').attr("readonly","readonly");//设 阅读全文
posted @ 2019-12-11 14:32 ZhiPeng007 阅读(1827) 评论(0) 推荐(0) 编辑
摘要: 1、启用横向滚动 2、设置flex布局 flex-wrap:nowrap; white-space:nowrap; 阅读全文
posted @ 2019-11-06 20:37 ZhiPeng007 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: window.onpageshow=function(e){ var a=e||window.event; alert(a.persisted);//false-链接打开。true-返回按钮 if(a.persisted){ //业务逻辑 } } 阅读全文
posted @ 2019-10-30 14:34 ZhiPeng007 阅读(195) 评论(0) 推荐(0) 编辑
摘要: var cur_li = $('#VC_t_projectAttachListToolbar_Module');//获取当前元素 var prev_li = cur_li.prev(); // 获取当前节点的上一个节点 // 把当前节点插入到上一个节点之前,如果不存在上一个节点,说明已经到达顶部 if(prev_li.length != 0){ prev_li.before(cur_li); } 阅读全文
posted @ 2019-10-26 11:27 ZhiPeng007 阅读(1091) 评论(0) 推荐(0) 编辑
摘要: //根据年月得到天数 function getDayNumByYearMonth(year, month) { switch (month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31; break; case 4: case 6: case 9:... 阅读全文
posted @ 2019-10-19 15:40 ZhiPeng007 阅读(719) 评论(2) 推荐(0) 编辑
摘要: <script> pushHistory(); //监听触发物理返回按钮 window.addEventListener("popstate", function(e) { f_close();//执行关闭浏览器窗口,返回公众号首页 return; }, false); function pushH 阅读全文
posted @ 2019-09-26 17:12 ZhiPeng007 阅读(1738) 评论(0) 推荐(0) 编辑
摘要: num为传入的数字,n为需要的字符长度 阅读全文
posted @ 2019-09-18 09:03 ZhiPeng007 阅读(748) 评论(0) 推荐(0) 编辑
摘要: function fn_wbDate(sdate,edate){ var date1=sdate; //开始时间 var date2=edate; //结束时间 var date3=date2.getTime()-date1.getTime() //时间差的毫秒数 //计算出相差天数 var days=Math.floor(date3/(24*3... 阅读全文
posted @ 2019-06-26 15:56 ZhiPeng007 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 日期格式转换: 日期计算: 字符串转日期: Jquery计算指定日期加上多少天、加多少月、加多少年的日期 著名:以上知识点均是转载。 阅读全文
posted @ 2019-06-20 14:05 ZhiPeng007 阅读(1217) 评论(0) 推荐(0) 编辑