1…失去焦点后验证
首先设计文本框
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="verify.js"></script>
<style type="text/css">
.input{
font-size: 10px;
width: 200px;
height: 20px;
}
</style>
</head>
<center>
<br />
<h3>验 证</h3>
<br /><br />
<div>用 户 名:
<input class="input" type="text" id="userName" onblur="regName()" />
<span id="userNameReg"></span>
</div>
<br />
<div>密