
JS
Polly_YF
这个作者很懒,什么都没留下…
展开
-
Open popup window with open.window method
a href="javascript: void(0)" onclick="window.open('popup.html', 'windowname2', 'width=200, \ height=77, \ directories=no, \ location=no, \ menubar=no, \ resizable=no, \ scrollbars=1, \ status=no,转载 2015-06-24 18:09:20 · 647 阅读 · 1 评论 -
JS中字符串转化与日期的相互转化及比较时间先后
一、字符串转化为时间并比较 第一种适用于:20100823这种字符串格式 function dateValid(){ var bd = document.getElementByIdx_x_x("sStartSaveDate").value; var beginDate = new Date(bd.replace(/^(\d{4})(\d{2})(\d{2})$/,"$1/$2转载 2015-06-24 18:05:02 · 905 阅读 · 0 评论