Verify username

<! DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title> </ title>
</ head>
<body>
<script type = "text / javascript">
var account = 'maoyuxuanshigede ';
if (account.length <3 || account.length> 10) {
document.write (' Your account or password is wrong, the account length should be between 3 ~ 10, the password is between 3 ~ 16 '+ "<br />")
}
if (account.toLowerCase (). indexOf ('mao')! == -1) {
document.write ('User name cannot contain sensitive words')
}
</ script>
</ body >
</ html>

Guess you like

Origin www.cnblogs.com/jiaqi818/p/12739652.html