会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小农_码
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2019年5月13日
layui 提交验证以及field作用
摘要: <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 小农_码
阅读(9259)
评论(0)
推荐(1)
2019年5月6日
js常用元素工具
摘要: 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 小农_码
阅读(206)
评论(0)
推荐(0)
2019年5月5日
js off bind unbind delegate undelegate绑定解绑操作,其中off可以解绑任意js事件
摘要: /*绑定多个事件 $(function(){ $("div").delegate("#a,#b",{"click":function(){ alert(1) } ,"mouseover":function(){ $(this).before(1) } })}) $(function(){ $("di
阅读全文
posted @ 2019-05-05 10:00 小农_码
阅读(581)
评论(0)
推荐(0)
2019年4月30日
Echarts【1、数据过多导致显示不全分页,2、数据展示探讨分析】
摘要: 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 小农_码
阅读(2902)
评论(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 小农_码
阅读(1213)
评论(0)
推荐(0)
Excel中复杂跨行跨列数据
摘要: XSSFWorkbook wb = new XSSFWorkbook(); // 工作表 XSSFSheet sheet = wb.createSheet("车辆使用情况统计"); XSSFCellStyle style = wb.createCellStyle(); style.setAlignm
阅读全文
posted @ 2019-04-30 09:56 小农_码
阅读(2177)
评论(0)
推荐(0)
前端JS批量添加校验数据唯一性
摘要: <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 小农_码
阅读(1829)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告