
js
文章平均质量分 78
java20100406
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
IE6情况下使用jquery.bgiframe.js插件解决下拉列表框被遮盖BUG
IE6情况下使用jquery.bgiframe.js插件解决下拉列表框被遮盖BUG原创 2010-11-30 12:52:00 · 6903 阅读 · 1 评论 -
常用前端操作
1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 no 可用于Table 2. 取消选取、防止复制 3. onpaste="return false" 不准粘贴 4. oncopy="return false;" oncut="return false;" 防止复制 5. IE地址栏前换成自己的图标转载 2012-02-12 14:15:21 · 784 阅读 · 0 评论 -
常用正则表达式
1.由数字、26个英文字母或者下划线组成的字符串: ^[0-9a-zA-Z_]{1,}$ 2.非负整数(正整数 + 0 ): ^\d+$ 3.正整数: ^[0-9]*[1-9][0-9]*$ 4.非正整数(负整数 + 0): ^((-\d+)|(0+))$ 5.负整数 : ^-[0-9]*[1-9][0-9]*$转载 2012-02-12 13:55:04 · 1198 阅读 · 0 评论 -
JS扩展
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : thi原创 2011-11-23 22:25:17 · 643 阅读 · 0 评论 -
jquery操作
].id" value="${walkthroughReviewItem.id }"/> ].target" value="${walkthroughReviewItem.target }"/> ].walkthroughReviewItem.id" value=原创 2011-08-20 09:09:15 · 730 阅读 · 0 评论 -
js中cloneNode
String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+pat原创 2011-08-20 09:03:14 · 2199 阅读 · 0 评论 -
信访项目
扫描 $(function(){ $("#scanLetterLink").click(function(){ var scanner = document.getElementById('scanner'); if(confirm('原创 2011-08-20 19:09:28 · 1147 阅读 · 0 评论 -
js中clone
司机人员 司机* readonly="readonly" > 性别原创 2011-08-20 09:04:39 · 1632 阅读 · 0 评论 -
js多文件上传框
/** * 生成多附件上传框 */ function createInput(){ var str = '附件'+ ' '+ ' '" name="uploads" value="" style="widt原创 2011-07-05 15:01:29 · 1736 阅读 · 0 评论 -
div层的定位以及消息提示的淡出效果
xx //层的定位var divId=document.getElementById("popupContact");divId.style.top=(document.body.clientHeight-divId.clientHeight)/2+document.body.scrollTop;divId.style.left=(document.body.clientWidth-divId原创 2011-06-27 15:29:00 · 752 阅读 · 0 评论 -
jquery操作表单元素
<br /> //事件 当对象set获取焦点时触发<br /> //$("#set").focus(function(){<br /> //alert("获得焦点");<br /> //});<br /> //事件 当对象set失去焦点时触发<br /> //$("#set").blur(function(){<br /> //alert("失去焦点");<br /> //});<br /> //文本框,文本区域<br /> //取值$("#sysparam_原创 2011-04-05 22:47:00 · 836 阅读 · 0 评论 -
jquery表单ajax提交以及checkbox全选/全不选
<br />1.checkbox全选/全不选<br />//JQuery一句话搞定全选/全不选<br />$(document).ready(function() {<br /> $("#all").click(function() {<br /> $("input[name='serialNumbercheck']").attr("checked", $("input[id='all']").attr("checked"));<br /> });<br />})<br />//注原创 2011-04-07 22:35:00 · 3767 阅读 · 0 评论 -
jquery解析XML文件
第一步:第二步: public String ajaxXml() throws IOException { System.out.println("*****" + name); HttpServletResponse response = ServletActionContext.getResponse(); response.setContentType("text/xml;charset=utf-8"); response.s原创 2011-04-01 23:36:00 · 1755 阅读 · 0 评论 -
JS扩展2
自定义Map对象 function Map(){ this.keys = new Array(); this.data = new Array(); this.put = function(key,value){ if(this.data[key] == null){ this.keys.push(value);原创 2012-10-10 10:39:53 · 520 阅读 · 0 评论