JS
scanklm
没有不可治愈的伤痛,没有不能结束的沉沦,所有失去的,会以另一种方式归来。——肖尔斯
展开
-
js获取项目根路径
function getRootPath(){//获取当前网址var curWwwPath=window.document.location.href;//获取主机地址之后的目录var pathName=window.document.location.pathname;var pos=curWwwPath.indexOf(pathName);//获取主机地址转载 2015-06-30 17:02:15 · 424 阅读 · 0 评论 -
laydate时间控件绑定回调事件
网址: http://sentsin.com/layui/laydate/1. 下载官网上的压缩包,解压laydate 文件夹到项目中;2. 在页面引入 3. 在页面添加: input框设置:" id="" type="text" >回调函数: function checkDate() { //回调函数内容 }原创 2015-10-09 17:18:40 · 27639 阅读 · 1 评论 -
jstl fn标签
在使用jstl的函数标签库之前需要在页面中引入:http://java.sun.com/jsp/jstl/functions"%> 1、fn:contains(string, substring) 如果参数string中包含参数substring,返回true。 2、fn:containsIgnoreCase(string, substring) 如转载 2015-11-26 17:27:42 · 347 阅读 · 0 评论 -
jsp获取cookie
<% Cookie[] myCookie=request.getCookies(); for(int i = 0; i < myCookie.length - 1; i++){ Cookie newCookie= myCookie[i]; if(newCookie.getName().equals("login")) { %> "> <%}};原创 2015-11-26 17:32:14 · 691 阅读 · 0 评论 -
js获取图片宽高
原文链接:http://www.qttc.net/201304304.html快速获取图片的宽高其实是为了预先做好排版样式布局做准备,通过快速获取图片宽高的方法比onload方法要节省很多时间,甚至一分钟以上都有可能,并且这种方法适用主流浏览器包括IE低版本浏览器。我们一步一步进入这个过程。一、简陋的获取图片方式123转载 2015-12-07 17:09:36 · 506 阅读 · 0 评论 -
JS 实现验证码
验证码 #code { font-family:Arial; font-style:italic; font-weight:bold; border:0;转载 2016-02-16 10:38:04 · 338 阅读 · 0 评论 -
nginx配置ajax请求跨域
nginx配置: server { listen 18081; server_name localhost; access_log /var/log/nginx/11.access.log ; error_log /var/log/nginx/11.error.log notice;原创 2016-03-19 16:43:50 · 13136 阅读 · 0 评论 -
tomcat 内存溢出
在tomcat/bin的catalina.sh中添加如下语句:JAVA_OPTS="-server -Xms1024m -Xmx1712m -XX:PermSize=64M -XX:MaxPermSize=128m -XX:-UseGCOverheadLimit"原创 2016-06-02 13:14:19 · 307 阅读 · 0 评论