抽风的鱼的博客
抽风的鱼 · 共 74 篇文章
frameset高度
今天调节界面的时候发现一个问题, 我需要iframe高度自适应 在iframe 加载完成的时候 调用方法读取子界面的高度然后设这iframe高度预期同步 并且为了在js中动态添加节点导致子界面高度变化,而同步调节iframe高度 这添加定时器,定时刷新iframe高度 $("#mainFrame").load(function(){ window.setInterval(showheight, 100); }); function showheight(){ var body = mainFrame.window.document.body; var iframHeight; iframHe…
2016-03-30 16:34 · 评论(0)
1 jQuery.fn.extend(); 2. jQuery.extend();
jQuery为开发插件提拱了两个方法,分别是: jQuery.fn.extend(); jQuery.extend(); (1). jQuery.extend(object); 它是为jQuery类添加类方法,可以理解为添加静态方法。如: a.jQuery.extend({ min: function(a, b) { return a < b ? a : b; }, max: function(a, b) { return a > b ? a : b; } }); jQuery.min(2,3); // 2 jQuery.max(4,5); // 5 (2). jQuery.fn.exten…
2016-03-29 15:50 · 评论(0)
svn cleanup failed–previous operation has not finished; run cleanup if it was in
step1: 到 sqlite官网 (http://www.sqlite.org/download.html) 下载 sqlite3.exe step4: 开始 -> 运行 -> 打开 cmd命令 打开 wc.db 执行 delete from work_queue;
2016-03-29 10:13 · 评论(0)
jquery on 添加img事件
//事件绑定成功 $("img").on("error",function(){ $(this).attr("src","/images/imgerr.jpg"); }); //事件绑定失败 $(document).on("error","img",function(){ $(this).attr("src","/images/imgerr.jpg"); }); 猜测原因: 在所有的浏览器,load ,scroll, 和 error 事件(例如, 在一个 元素上)不会冒泡。在Internet Explorer 8和更低,paste 和 reset事件不会冒泡,这样的事件是不支持委派使用,但若…
2016-03-25 14:51 · 评论(0)
-Dmaven.multiModuleProjectDirectory system propery is not set.
eclipse中使用maven插件的时候,运行run as maven build的时候报错 -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match. 可以设一个环境变量M2_HOME指向你的maven安装目录 M2_HOME=D:\Apps\apache-maven-3.3.1 然后在Window->Preference->Java->Installed JREs->Edit 在Default VM argu…
2016-03-25 10:20 · 评论(0)
网页底部固定
第二种情况:footer始终在其底部固定 .container{position:relative;width:100%;min-height:100%;} .body{padding-bottom:50px;} .footer{height:50px;position:absolute;bottom:0px;left:0px;} 第一种情况:footer随着滚动条的滚动而滚动 .container{position:relative;width:100%;min-height:100%;} .body{padding-bottom:50px;} .footer{height:50px;po…
2016-03-21 17:27 · 评论(0)
手工导入maven jar包
网址: http://192.168.10.213:8081/nexus/index.html#nexus-search;quick~shiro-ehcache 命令 mvn install:install-file -Dfile=E:\s\org.apache.sling.commons.html-0.9.1-SNAPSHOT.jar -DgroupId=org.apache.sling -DartifactId=org.apache.sling.commons.html -Dversion=0.9.1-SNAPSHOT -Dpackaging=jar -Dfile jar包路径 -Dgr…
2016-03-21 13:50 · 评论(0)
spring 拦截器
参考网址: http://sishuok.com/forum/blogPost/list/5934.html 只截取部分内容,查看完成请前往原网址 、常见应用场景 1、日志记录:记录请求信息的日志,以便进行信息监控、信息统计、计算PV(Page View)等。 2、权限检查:如登录检测,进入处理器检测检测是否登录,如果没有直接返回到登录页面; 3、性能监控:有时候系统在某段时间莫名其妙的慢,可以通过拦截器在进入处理器之前记录开始时间,在处理完后记录结束时间,从而得到该请求的处理时间(如果有反向代理,如apache可以自动记录); 4、通用行为:读取cookie得到用户信息并将用户对象放入请求…
2016-03-18 16:38 · 评论(0)
settimeout
参考网址: http://www.cnblogs.com/sking7/archive/2011/10/19/2218187.html js是单线程执行的 在js引擎遇到settimeout(funcion(),111)函数时 它必须依赖外部来计时并触发定时, 由外部计时器计时,并产生事件,然后加入js引擎队列。由js引擎顺序执行
2016-03-18 15:25 · 评论(0)
js return 和 return false 区别
js return 和 return false 区别 在循环中 return 跳出当前循环,return false跳出函数,结束该函数执行
2016-03-15 15:02 · 评论(0)
org.springframework.http.converter.HttpMessageNotWritableException,com.fasterxm
org.springframework.http.converter.HttpMessageNotWritableException com.fasterxml.jackson.databind.JsonMappingException 今天出现了这两个错误, 在对象转换成json的时候出现了错误, 结果发现是类中某属性的set 和 get函数写错了!!!!!!
2016-03-14 12:42 · 评论(0)
pintuer e.handler.apply is not a function
今天使用的pintuer框架 结果pintuer框架的js文件一直报错 e.handler.apply is not a function 百度了一把 又说是事件未写返回处理函数了 仔细查找了代码 发现果然如此 $(document).on("click",".pagination a",function(){}); 不小心写成车了$(document).on("click",".pagination a"),function(){};
2016-03-13 13:16 · 评论(0)
with SQL state '42000', error code '1064',
昨天遇到一个错误 with SQL state '42000', error code '1064', 查看了很久没有发现sql语句哪里写错了,, 百度了一把之后,有说法是字段与sql的关键字冲突了,仔细检查之后没有发现有冲突的 结果一再检查之后发现是 sql函数的使用格式错误了 count(*) 写成了 count * 结果sql执行的时候 会把他当成列名处理 这样就出现了关键字冲突问题 浪费我一个下午来解决 !!!!!!!!
2016-03-13 11:19 · 评论(0)
jquery 判断checkbox是否选中
使用$(":checkbox").is("checked") 返回true则选中 使用$(":checkbox").attr("checked") 返回undefined 不适用 jquery 设置选中 $(":checkbox").prop("checked",true); $(":checkbox").prop("checked",false);
2016-03-11 11:59 · 评论(0)