JS验证函数的调用方法和注意: 1.给表单设置onsubmit=”return test()”,配合<input type=”submit” name=”Submit” value=”check”> 进行提交. 2.<input type=text onkeydown=”test();”> //当鼠标按下直接调用函数验证 3.<input type=text onblur=”testl(this.value)”> //传入自己的值进行验证,test(this)//传入对象本身进行验证 4.<input type=”button” value=”test” onclick=”test()”> /