date=formatdatetime(now(),2)
function checkin(){
if (document.formname.ccsj.value='<%=date%>';){
alert("时间不对");
document.formname.ccsj.focus();
return false;
}
}
function checkin(){
if (document.formname.ccsj.value='<%=date%>';){
alert("时间不对");
document.formname.ccsj.focus();
return false;
}
}
解决方案 »
- 菜鸟问题 继续请教!
- 怎么改变包含框架网页的title
- 请教高手!还是关于JS中onclick函数的参数传递的一个问题!
- 一段JS代码,总是报错,请个位指点.
- 请教高手们:如何从客户端脚本中获取当前正访问网页的IP地址!
- 关于在网页中使用"组合捷"的问题....
- 一个页面的长度很长,我想每次打开这个页面,滚动条都自动到最下面!我的做法为何不行!!
- 急!急!急!急!急!快来帮忙
- 当a.htm open b.htm时,要使对a.htm不能操作,相当于disable掉,如何做??
- 请问一个比较普通但我一点都不会的问题.谢谢各位先!
- 如何取得iframe的字符串???
- 在CSS中的filter : Chroma方法能不能使某一个范围内的颜色都变为透明的?
function checkin(){
if (document.formname.ccsj.value='<%=date%>';){
alert("时间不对");
document.formname.ccsj.focus();
return false;
}
}
var newdate = new Date(str)
<input value=check type=button onclick="alert((Date.parse(mxh.value)).valueOf() > (new Date()).valueOf())">
<input name=mxh1 value="4/17/2002">
<input value=check type=button onclick="alert((Date.parse(mxh1.value)).valueOf() > (new Date()).valueOf())">
用你的程序试可以
但放在我程序中就不行了
alert(document.frm.ccsj.value);//显示为2002-7-16 11:29:11
alert((Date.parse(document.frm.ccsj.value)).valueOf());//错了显示为NAN
alert((new Date()).valueOf());
alert((Date.parse(document.frm.ccsj.value)).valueOf() > (new Da()).valueOf());
请帮帮忙!