<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script type="text/javascript">
function check(e) {
var pattern = new RegExp("[\"\\-%&_+`~!@#$^*()<>=|{}':;',\\[\\]./?~!@#¥……*()——|【】‘;:”“'。,、?]");
return e.value.replace(pattern,'');
}
</script>
</head>
<body>
<input type="text" name="username" size=50 onkeydown="value = check(this);" onkeyup="value = check(this);"/>
</body>
</html>
屏蔽特殊字符
最新推荐文章于 2021-03-10 20:03:57 发布