文章分类 -  14-前端备忘

摘要:session的存活时间,设置 if("on".equals(auto_login)){ //自登录后一周内自动登录 Cookie cookie01 = new Cookie("JSESSIONID",session.getId()); Cookie cookie_autologin = new C 阅读全文
posted @ 2018-12-15 18:33 payn 阅读(146) 评论(0) 推荐(0)
摘要:JS中判断字符换为空:if(flag||username.trim()=="") JS中判断日期是否为空:if(birthday==null) JS进行日期对象大小的比较var birthday = document.getElementById("birthday").value; 页面传来的日期 阅读全文
posted @ 2018-12-07 21:00 payn 阅读(141) 评论(0) 推荐(0)
摘要:方式一:基于Jquery的<div>嵌套html 方式二:外部js 方式三:纯JS方法 方式四:iframe 方法(未测试) 使用jsp的方法: 阅读全文
posted @ 2018-12-05 20:51 payn 阅读(1047) 评论(0) 推荐(0)
摘要:将Bootstrap中的fonts文件夹放入到web项目web文件夹下。fonts文件夹包含以下文件:glyphicons-halflings-regular.eotglyphicons-halflings-regular.svgglyphicons-halflings-regular.ttfgly 阅读全文
posted @ 2018-12-05 20:36 payn 阅读(218) 评论(0) 推荐(0)
摘要:>::before和::after1、概念:The CSS ::before(::after) pseudo-element matches a virtual first(last) child of the selected element. It is typically used to ad 阅读全文
posted @ 2018-11-29 08:59 payn 阅读(186) 评论(0) 推荐(0)
摘要:>HTML5中的aria与role role:的作用是描述一个非标准的tag的实际作用。比如用div做button,那么设置div 的 role="button",辅助工具就可以认出这实际上是个button。aria的意思是Accessible Rich Internet Application,a 阅读全文
posted @ 2018-11-28 22:18 payn 阅读(1205) 评论(0) 推荐(0)