
js
iteye_5697
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
表单验证js 。正则
只能输入数字:onkeyup="this.value=this.value.replace(/\D/g,'')" eg :<s:textfield id="fCODE" name="formInfo.fCODE" onblur="javascript:return check_code();"></s:textfield> Nobody c原创 2011-07-27 11:04:32 · 95 阅读 · 0 评论 -
frameset 框架 target参数
在手动改HTML代码时经常会用到target参数,常用的有两个target=_blank 和target=_self意思为:target=_blank表示在新窗口中打开该链接;target=_self表示相同框架,即在当前窗口(或当前选项卡)中打开该链接还有两个不常用的:target=_parent,将链接的文件载入含有该链接框架的父框架集或父窗口中。如果含有该链接的框架不是嵌套的,则在浏览器全屏...原创 2011-08-04 18:21:28 · 387 阅读 · 0 评论 -
js 框架
JS: <body onUnload="parent.location.action('<%=basePath%>product/product!ToEdit.action?formInfo.FID=24'); window.parent.focus(); window.close();">说明:onUnload事件在用户退出页面时发...原创 2011-08-15 17:14:24 · 123 阅读 · 0 评论 -
js 时间格式化
Date.prototype.format = function(format){ var o = { "M+" : this.getMonth()+1, //month "d+" : this.getDate(), //day "h+" : this.getHours(), //hour "m+" : this.getMinutes(), //minute "...原创 2011-12-20 20:12:08 · 200 阅读 · 0 评论 -
js 提交表单,老是忘记,备忘
js 提交表单,老是忘记,备忘document.forms[0].action = url; document.forms[0].method = "post"; document.forms[0].submit();原创 2010-12-29 11:31:29 · 101 阅读 · 0 评论 -
struts2 为什么是这么写的。。
[color=red][/color] 产品名称: 可选择视频数量: 选择视频: [color=cyan]struts 2 标签。。。[/color]原创 2011-02-25 14:03:41 · 83 阅读 · 0 评论