05 2019 档案
摘要:public class PoiUtil{ /** * 读取excel数据 * @param path */ public static ArrayList<Map<String,String>> readExcelToObj(File file) { Workbook wb = null; Arr
阅读全文
摘要:一开始想用session监听器,不过有过期时间,并非实事。而且,如果不用jsp,就需要写个rest服务,供前段轮询调用接口,比如5秒一次,来刷新在线人数。影响性能。后来想到用WebSocket来做。刚好之前有用过socketio来推送消息,于是敲定方案。 我使用的是开源库,https://githu
阅读全文
摘要:<style>#bom { position:fixed; left:0px; width:50px; height:20px; font-size:10px; font-family:Arial, Helvetica, sans-serif; text-align:center; border:s
阅读全文
摘要:后台代码 @RequestMapping(value = "upload") @ResponseBody public Map<String, Object> upload( @RequestParam(value = "file", required = false) MultipartFile
阅读全文
摘要://日期自定义时分秒为当前时间 var startTime; var now = new Date(); function time(obj){ layui.use('laydate', function(){ var laydate = layui.laydate; startTime= layd
阅读全文
摘要: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(
阅读全文
摘要:/*************************初始化添加*************************************/ <script type="text/javascript"> //维护删除数组中的某一项 Array.prototype.remove = function(
阅读全文
摘要:三级联动实列 js http://www.jq22.com/jquery-info13981 下载 第二个插件js 修改
阅读全文
摘要: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
阅读全文
摘要:<div class="layui-form-item"> <div class="layui-input-block"> <button class="layui-btn" lay-submit lay-filter="formSubmit" id="tijiao">立即提交</button> <
阅读全文
摘要:jQuery.fn.center = function () { this.css('position','absolute'); this.css('top', ( $(window).height() - this.height() ) / +$(window).scrollTop() + 'px'); this.css('left', ( $(window).width() -...
阅读全文
摘要:/*绑定多个事件 $(function(){ $("div").delegate("#a,#b",{"click":function(){ alert(1) } ,"mouseover":function(){ $(this).before(1) } })}) $(function(){ $("di
阅读全文

浙公网安备 33010602011771号