引用:
|
<!--#include file="conn.asp"--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script language=javascript> function SearchForm() { if (IsNaN(document.form1.card.value)) { alert("身份证号码错误!"); return false; } } </script> </head> <body> <form name="form1" action="?action=Search" method="post"> <input type="text" name="username" value="请输入姓名:"> <input type="text" name="card" value="请输入身份证号码"> <input type="submit" value="查询" onClick="return SearchForm()"> </form> </body> </html> |









使用JavaScript中的IsNan出现的问题。。。









平板模式