passer1991

随笔分类 -  js和jQuery

上一页 1 2 3 下一页

easyui 像狗屎一样的框架 layout panel href 重新赋值后,导致页面弹出的对话框可能是之前panel中的对话框内容
摘要:在给dialog设置完shadow="false" modal="false" inline="true"之后,页面就不会一直增加垃圾代码了,像我只能说 这再一次证明了easyui是像狗屎一样的框架,连默认值也设置的像狗屎一样. 阅读全文

posted @ 2013-09-11 15:39 passer1991 阅读(375) 评论(0) 推荐(0)

jquery为动态添加的元素绑定事件
摘要:经测试 live,on 方法都不起作用.delegate方法是可以的.举例如下: $("#rightBox,#leftBox").delegate("p","click",function(){ if($(this).hasClass("selected1")) { $(this).removeClass("selected1"); console.log("right"); }else { $(this... 阅读全文

posted @ 2013-09-10 11:37 passer1991 阅读(165) 评论(0) 推荐(0)

如何根据event.target得到标签元素的名字
摘要:var localName=$(event.target)[0].localName;当然可能不用jquery也可以得到,但是我没有测试! 阅读全文

posted @ 2013-09-05 11:11 passer1991 阅读(687) 评论(0) 推荐(0)

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 阅读(286) 评论(0) 推荐(0)

spring3-mvc实例-信息转换
摘要:http://yjplxq.blog.51cto.com/4081353/978957 阅读全文

posted @ 2013-08-26 16:08 passer1991 阅读(103) 评论(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 阅读(284) 评论(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 阅读(195) 评论(1) 推荐(0)

jquery 选中复选框
摘要:使用$("#send_person :checkbox").prop("checked",true);可以实现,而不是$("#send_person :checkbox").attr("checked",true); 阅读全文

posted @ 2013-08-17 13:38 passer1991 阅读(168) 评论(0) 推荐(0)

js控制文本框中的字符数
摘要:function checkLength(which,remainderNum,maxChars) { if (which.value.length > maxChars) which.value = which.value.substring(0,maxChars); var curr = maxChars - which.value.length; document.getElementById(remainderNum).innerHTML = curr.toString();} 阅读全文

posted @ 2013-08-17 12:03 passer1991 阅读(177) 评论(0) 推荐(0)

jquery为动态添加的元素绑定事件
摘要:经测试 live,on 方法都不起作用.delegate方法是可以的.举例如下: $("#rightBox,#leftBox").delegate("p","click",function(){ if($(this).hasClass("selected1")) { $(this).removeClass("selected1"); console.log("right"); }else { $(this... 阅读全文

posted @ 2013-08-16 10:04 passer1991 阅读(128) 评论(0) 推荐(0)

easyui的错误原因汇集 为什么easyui总是报错呢
摘要:1.有可能是在双引号里又使用了双引号, 或者在单引号中又使用了单引号. 阅读全文

posted @ 2013-08-14 11:56 passer1991 阅读(176) 评论(0) 推荐(0)

textarea 为什么删除内容之后就不能再赋值了呢
摘要:jquery给textarea赋值怎么不好用呢 阅读全文

posted @ 2013-08-14 11:38 passer1991 阅读(339) 评论(0) 推荐(0)

js格式化日期
摘要:function formatterdate(val, row) {var date = new Date(val);return date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();}开始时间 阅读全文

posted @ 2013-08-06 22:25 passer1991 阅读(118) 评论(0) 推荐(0)

WiFi流量劫持
摘要:http://nnwq.iteye.com/blog/1901328 阅读全文

posted @ 2013-07-09 16:06 passer1991 阅读(138) 评论(0) 推荐(0)

正则表达式30分钟入门教程
摘要:http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html 阅读全文

posted @ 2013-05-26 08:44 passer1991 阅读(82) 评论(0) 推荐(0)

jQuery Ajax 全解析
摘要:http://www.cnblogs.com/qleelulu/archive/2008/04/21/1163021.html 阅读全文

posted @ 2013-05-23 11:29 passer1991 阅读(94) 评论(0) 推荐(0)

js去除空格正则
摘要:http://www.cnblogs.com/zhangnanblog/archive/2012/02/11/2347170.html 阅读全文

posted @ 2013-05-20 15:33 passer1991 阅读(81) 评论(0) 推荐(0)

Extjs4 部分中文参考文档
摘要:http://wenku.baidu.com/view/4e803be2e009581b6bd9ebd5.html 阅读全文

posted @ 2013-05-08 15:05 passer1991 阅读(122) 评论(0) 推荐(0)

了解JavaScript类
摘要:了解JavaScript类Javascript中的类实现 阅读全文

posted @ 2013-03-26 10:19 passer1991 阅读(88) 评论(0) 推荐(0)

HTML中接收URL参数的三种方式
摘要:http://blog.163.com/doudou8820@126/blog/static/4002976420090761954811/ 阅读全文

posted @ 2013-03-25 11:07 passer1991 阅读(364) 评论(0) 推荐(0)

上一页 1 2 3 下一页

导航