这里需要知道焦点功能的使用。谁能解释这段代码?
function Allow Age(){
if(!form.age.value.match(/[0-9]+$/) && form.age.value !="")
{
form.age.value="";
form.age.focus();
alert("invalid format");
}
if(form.age.value.length > 1)
alert("invalid entry")
}