题目如下:
初学web,主要熟悉一下javascript和简单正则表达式的用法。
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function validate(){
var flag=1;
if(!/^\d+$/.test(document.emp.empno.value))
{
document.getElementById("errorno