passer1991

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 39 下一页

2013年9月2日

spring mvc 模糊查询防注入

摘要: 添加参数时可以使用 args.add("%"+fsxm+"%"); 阅读全文

posted @ 2013-09-02 14:20 passer1991 阅读(381) 评论(0) 推荐(0) 编辑

2013年8月28日

javascript 取整,取余数

摘要: javascript 取整,取余数1.丢弃小数部分,保留整数部分parseInt(5/2)22.向上取整,有小数,则整数部分加1Math.ceil(5/2)33.四舍五入Math.round(5/2)34.向下取整Math.floor(5/2)2取余数0%401%412%423%434%405%41 阅读全文

posted @ 2013-08-28 10:00 passer1991 阅读(282) 评论(0) 推荐(0) 编辑

2013年8月26日

spring3-mvc实例-信息转换

摘要: http://yjplxq.blog.51cto.com/4081353/978957 阅读全文

posted @ 2013-08-26 16:08 passer1991 阅读(99) 评论(0) 推荐(0) 编辑

2013年8月24日

CSS中怎么让DIV居中

摘要: http://www.cnblogs.com/DebugLZQ/archive/2011/08/09/2132381.html 阅读全文

posted @ 2013-08-24 16:29 passer1991 阅读(102) 评论(0) 推荐(0) 编辑

git - 简易指南

摘要: http://www.bootcss.com/p/git-guide/ 阅读全文

posted @ 2013-08-24 15:08 passer1991 阅读(97) 评论(0) 推荐(0) 编辑

2013年8月23日

浏览器窗口的大小

摘要: var w=window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var h=window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; console.log(w+" "+h); 上边的代码是获得浏览器可视部分的高度和宽度. var dbsh=document.body.scrollHeight; ... 阅读全文

posted @ 2013-08-23 13:38 passer1991 阅读(144) 评论(0) 推荐(0) 编辑

2013年8月21日

如何限制文本框中的字数

摘要: function checkLength(which,remainderNum,maxChars) { setTimeout(function() { if (which.value.length > maxChars) which.value = which.value.substring(0,maxChars); var curr = maxChars - which.value.length; //document.getElementById().innerHTML = curr.toString(); $("#"+remainderNum).text(cur 阅读全文

posted @ 2013-08-21 17:57 passer1991 阅读(206) 评论(0) 推荐(0) 编辑

jquery如何设置控件位置

摘要: http://www.1000year.com/blog/834/http://blog.csdn.net/wyqlxy/article/details/6728934 var offsettop=$("#form1 table").offset().top; var offsetleft=$("#form1 table").offset().left; $("#prompt").css({position: "absolute",'top':offsettop,'left':off 阅读全文

posted @ 2013-08-21 14:16 passer1991 阅读(276) 评论(0) 推荐(0) 编辑

jquery中this的作用域

摘要: $("#btn1").click(function(){ var thisOne=$(this); $.post("url",function(data){ var thisTwo=$(this); });});注意:thisTwo和thisOne不是同一个对象. 阅读全文

posted @ 2013-08-21 13:46 passer1991 阅读(190) 评论(1) 推荐(0) 编辑

2013年8月19日

Spring mvc 转发、重定向

摘要: http://blog.csdn.net/yczz/article/details/5937420 阅读全文

posted @ 2013-08-19 10:53 passer1991 阅读(105) 评论(0) 推荐(0) 编辑

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 39 下一页

导航