javascript
文章平均质量分 75
wangfang_0728
这个作者很懒,什么都没留下…
展开
-
JavaScript窗口功能指南之引用已打开的窗口
如果你想关联一个指定的窗口,你可以使用< A>标记的TARGET属性。除非你分配,一个浏览器窗口不会有一个名字。当你使用TARGET属性通过一个链接打开一个新窗口时,你就分配给它了一个清晰的名字: <A HREF="http://www.intel.com/"TARGET="review">Intel 前面的链接打开一个新窗口,名叫review。下面的链接通过J转载 2008-10-29 16:14:00 · 356 阅读 · 0 评论 -
特牛正则表达式——时间验证
今天见到了一个很强的正则表达式,几乎把所有的日期特例情况都考虑进去了,比如润年,2月等,分享一下function isDate(str){ var reg = /^((((1[6-9]|[2-9]/d)/d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]/d|3[01]))|(((1[6-9]|[2-9]/d)/d{2})-(0?[13456789]|1[0转载 2008-10-29 16:17:00 · 451 阅读 · 0 评论 -
js实现日历控件
//calendar.jsfunction atCalendarControl(){ var calendar=this; this.calendarPad=null; this.prevMonth=null; this.nextMonth=null; this.prevYear=null; this.next转载 2008-10-29 16:18:00 · 1294 阅读 · 1 评论 -
location.reload() 和 location.replace()的区别和应用
window.location.hrefwindow.top.location.replace("http://www.im286.com")top.location.href("http://www.im286.com")window.navigate ("http://www.im286.com")Html:--------------------------------转载 2009-02-18 13:37:00 · 2512 阅读 · 0 评论 -
window.open 用post方式提交
<br /><form id="editForm" name="editForm" method="post" action="viewUser" target="newWindow" onsubmit="openNewSpecifiedWindow( 'newWindow' )"><br /> <fieldset><br /> <input type="hidden" id="id" name="id" value="/$!{User.id}" /><br /> <input type="原创 2011-05-25 16:43:00 · 1702 阅读 · 0 评论 -
jsp中URL中文处理
Java代码 {try{byte temp[]=str.getBytes("GB2312"); str=new String(temp,"ISO-8859-1"); return str; }catch(Exception e){return str;}} response.sendRedirect(GBToISO("errmsg.jsp?err转载 2011-06-14 11:45:00 · 671 阅读 · 0 评论