HTML5表单验证
HTML代码: <form action= " index.html " method= " post " id= " myform " > <dl class = " register_row " > <dt>Email地址:</dt> <dd><input id= " email " type= " email " required= " required " class = " register_input " pattern= " ^\w+@\w+(\.[a-zA-Z]{2,3}){1,2}$ " /></dd> </dl> <dl class = " register_row " > <dt>设置昵称:</dt> <dd><input id= " nickName " type= " text " class = " register_input " required= " required " pattern= " [a-zA-Z0-9]{4,20} " /></dd> </dl> <dl class = " register_row " > <dt>设定密码:</dt> <dd><input id= " pwd " type= " password " class = " register_input " required= " required " pattern=