05 2019 档案

摘要:public class PoiUtil{ /** * 读取excel数据 * @param path */ public static ArrayList<Map<String,String>> readExcelToObj(File file) { Workbook wb = null; Arr 阅读全文
posted @ 2019-05-29 13:59 小农_码 阅读(1103) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-05-21 10:05 小农_码 阅读(245) 评论(0) 推荐(0)
摘要:一开始想用session监听器,不过有过期时间,并非实事。而且,如果不用jsp,就需要写个rest服务,供前段轮询调用接口,比如5秒一次,来刷新在线人数。影响性能。后来想到用WebSocket来做。刚好之前有用过socketio来推送消息,于是敲定方案。 我使用的是开源库,https://githu 阅读全文
posted @ 2019-05-20 10:55 小农_码 阅读(1563) 评论(0) 推荐(0)
摘要:<style>#bom { position:fixed; left:0px; width:50px; height:20px; font-size:10px; font-family:Arial, Helvetica, sans-serif; text-align:center; border:s 阅读全文
posted @ 2019-05-17 18:24 小农_码 阅读(487) 评论(0) 推荐(0)
摘要:后台代码 @RequestMapping(value = "upload") @ResponseBody public Map<String, Object> upload( @RequestParam(value = "file", required = false) MultipartFile 阅读全文
posted @ 2019-05-16 18:22 小农_码 阅读(9778) 评论(0) 推荐(0)
摘要://日期自定义时分秒为当前时间 var startTime; var now = new Date(); function time(obj){ layui.use('laydate', function(){ var laydate = layui.laydate; startTime= layd 阅读全文
posted @ 2019-05-16 17:16 小农_码 阅读(6900) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-05-16 16:34 小农_码 阅读(385) 评论(0) 推荐(0)
摘要:1 List<Object> list = new ArrayList<>(); 2 Map<String,Object> m1=new HashMap<>(); 3 m1.put("a", 1); 4 Map<String,Object> m2=new HashMap<>(); 5 m1.put( 阅读全文
posted @ 2019-05-16 16:25 小农_码 阅读(306) 评论(0) 推荐(0)
摘要:/*************************初始化添加*************************************/ <script type="text/javascript"> //维护删除数组中的某一项 Array.prototype.remove = function( 阅读全文
posted @ 2019-05-16 08:48 小农_码 阅读(540) 评论(0) 推荐(0)
摘要:三级联动实列 js http://www.jq22.com/jquery-info13981 下载 第二个插件js 修改 阅读全文
posted @ 2019-05-14 16:38 小农_码 阅读(211) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-05-14 14:58 小农_码 阅读(884) 评论(0) 推荐(0)
摘要:select 1 as biaoshi from jdxtz where exists ( select * from gzpxx where gzpxx.bh=jdxtz.gzpbh and dqzt='借出' or exists( select * from xlgl where xlgl.bh 阅读全文
posted @ 2019-05-13 18:23 小农_码 阅读(1608) 评论(0) 推荐(0)
摘要:<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 小农_码 阅读(9267) 评论(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 小农_码 阅读(207) 评论(0) 推荐(0)
摘要:/*绑定多个事件 $(function(){ $("div").delegate("#a,#b",{"click":function(){ alert(1) } ,"mouseover":function(){ $(this).before(1) } })}) $(function(){ $("di 阅读全文
posted @ 2019-05-05 10:00 小农_码 阅读(584) 评论(0) 推荐(0)