<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>32.pattern属性和SelectionDirection属性</title>
</head>
<body>
<form action="#">
<input pattern="[A-Z]{3}" name="part">
<input type="submit" >
</form>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>32.pattern属性和SelectionDirection属性</title>
</head>
<body>
<form action="#">
<input pattern="[A-Z]{3}" name="part">
<input type="submit" >
</form>
</body>
</html>