摘要: <div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit lay-filter="formSubmit" id="tijiao">立即提交</button> < 阅读全文
posted @ 2019-05-13 18:20 小农_码 阅读(9081) 评论(0) 推荐(1) 编辑
摘要: jQuery.fn.center = function () { this.css('position','absolute'); this.css('top', ( $(window).height() - this.height() ) / +$(window).scrollTop() + 'px'); this.css('left', ( $(window).width() -... 阅读全文
posted @ 2019-05-06 14:57 小农_码 阅读(200) 评论(0) 推荐(0) 编辑
摘要: /*绑定多个事件 $(function(){ $("div").delegate("#a,#b",{"click":function(){ alert(1) } ,"mouseover":function(){ $(this).before(1) } })}) $(function(){ $("di 阅读全文
posted @ 2019-05-05 10:00 小农_码 阅读(547) 评论(0) 推荐(0) 编辑
摘要: var hide=true; var dataZoom_end =0;if(result.length>5 ){//一页显示5条(5-1)/总*100var dataZoom_end = (4/result.length)*100; }else{var dataZoom_end = 100; hid 阅读全文
posted @ 2019-04-30 10:30 小农_码 阅读(2775) 评论(0) 推荐(0) 编辑
摘要: //输入的时候如果输入小数2.220立即变成2.22保留两位js工具类 function clearNoNum(obj){ obj.value = obj.value.replace(/[^\d.]/g,""); obj.value = obj.value.replace(/\.{2,}/g,"." 阅读全文
posted @ 2019-04-30 10:02 小农_码 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: XSSFWorkbook wb = new XSSFWorkbook(); // 工作表 XSSFSheet sheet = wb.createSheet("车辆使用情况统计"); XSSFCellStyle style = wb.createCellStyle(); style.setAlignm 阅读全文
posted @ 2019-04-30 09:56 小农_码 阅读(2055) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> //维护删除数组中的某一项 Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(in 阅读全文
posted @ 2019-04-30 09:49 小农_码 阅读(1784) 评论(0) 推荐(0) 编辑