上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页
摘要: 在input标签中添加 阅读全文
posted @ 2019-07-04 14:16 泽泽生龙 阅读(402) 评论(0) 推荐(0)
摘要: <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</f 阅读全文
posted @ 2019-07-02 15:48 泽泽生龙 阅读(1622) 评论(0) 推荐(0)
摘要: 用防抖动来阻止页面的重复提交: function debounce(func, wait) { let timeout return function () { clearTimeout(timeout) timeout = setTimeout(func, wait) //返回计时器 ID }} 阅读全文
posted @ 2019-07-01 09:39 泽泽生龙 阅读(2193) 评论(0) 推荐(0)
摘要: function back2Top() { $("body,html").animate({scrollTop:0},1000); return false;} 阅读全文
posted @ 2019-06-29 17:44 泽泽生龙 阅读(437) 评论(0) 推荐(1)
摘要: 使用echarts; 可以将echarts当作单文件引入: <script src="${ctx.contextPath}/js/modules/clsDriverSpace/clsDriverSpace.js"></script> 此引入不用其他的引入或配置 给echarts一个区间,此区间给定宽 阅读全文
posted @ 2019-06-29 14:52 泽泽生龙 阅读(155) 评论(0) 推荐(0)
摘要: 不同: @requestParam 用于get请求 @requestParam("barCode" String barCode);理解为获取请求参数中barCode属性的值赋给barCode字段; 如果参数中没有barCode属性,则会报异常 @requestBody 用于post请求 请求获得一 阅读全文
posted @ 2019-06-27 17:02 泽泽生龙 阅读(481) 评论(0) 推荐(0)
摘要: 文件上传的前端比较简单, html: 阅读全文
posted @ 2019-06-19 14:45 泽泽生龙 阅读(2386) 评论(0) 推荐(0)
摘要: 在用 window.open()下载服务端的文件需要传送参数,但是参数含有中文,在此情况下,后台接受到的参数会乱码或数据丢失, 此时需要将含有中文的参数 用encodeURI(str)转换,这样服务端就能正常接收。 阅读全文
posted @ 2019-06-19 14:36 泽泽生龙 阅读(493) 评论(0) 推荐(0)
摘要: function switchPercentToFloat(val){ if(!val||0==eval(val)){ return null; } console.log("val",val); // debugger; var str=val.toString(); var r0=str.spl 阅读全文
posted @ 2019-06-17 15:33 泽泽生龙 阅读(2745) 评论(0) 推荐(0)
摘要: 在湖北银行的家园e呆项目中,出现了开多个窗口后,localstorage保存信息混乱串用的问题; 经检查,是在多个窗口中,取用localstorage问题导致的, 经查询发现,是在浏览器中,localstorage是全局的,在浏览器中是跨域的,有唯一的key; 而sessionstorage是不能跨 阅读全文
posted @ 2019-06-04 17:36 泽泽生龙 阅读(200) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 19 下一页