一个过滤特殊字符的JS!
来源:互联网 发布:leap计算软件 编辑:程序博客网 时间:2024/05/20 21:45
<script language="javascript">
function checkForms(){
var iu, iuu, regArray=new Array("","◎","■","●","№","↑","→","↓"+
"!","@","#","$","%","^","&","*","(",")","_","-","+","=","|","","[","]","?","~","`"+
"!","<",">","‰","→","←","↑","↓","¤","§","#","&","&","\","≡","≠"+
"≈","∈","∪","∏","∑","∧","∨","⊥","∥","∥","∠","⊙","≌","≌","√","∝","∞","∮"+
"∫","≯","≮",">","≥","≤","≠","±","+","÷","×","/","Ⅱ","Ⅰ","Ⅲ","Ⅳ","Ⅴ","Ⅵ","Ⅶ","Ⅷ","Ⅹ","Ⅻ","㈠","㈡"+
"╄","╅","╇","┻","┻","┇","┭","┷","┦","┣","┝","┤","┷","┷","┹","╉","╇","【","】"+
"㈢","㈣","㈤","㈥","㈦","㈧","㈨","㈩","①","②","③","④","⑤","⑥","⑦","⑧","⑨","⑩","┌","├","┬","┼","┍","┕","┗","┏","┅","─"+
"〖","〗","←","〓","☆","§","□","‰","◇","︿","@","△","▲","#","℃","※",".","≈","¢");
iuu=regArray.length;
for(iu=1;iu<=iuu;iu++){
if (document.Gforms.username.value.indexOf(regArray[iu])!=-1){
alert("注册名不可以包含:" + regArray[iu]);
document.Gforms.username.focus();
return false;
}
}
return true;
}
</script>
<form action="" method="post" name="Gforms" id="Gforms" onSubmit ="return checkForms();">
<input type="text" name="username">
<input type="submit" name="Submit" value="Submit">
<br>
请输入用户名</form>
- 一个过滤特殊字符的JS
- 一个过滤特殊字符的JS!
- 一个过滤特殊字符的JS .
- 一个过滤特殊字符的JS
- js特殊字符的过滤
- js过滤特殊字符
- js过滤特殊字符
- js过滤特殊字符
- js过滤特殊字符
- js特殊字符过滤
- js过滤特殊字符
- js 过滤特殊字符
- Js 过滤特殊字符
- js特殊字符过滤的示例代码
- js正则过滤特殊字符
- 找到一个过滤特殊字符的JS,不知道有人需要不
- 一个过滤特殊字符的函数ASP.NET (C#)
- 过滤特殊字符的方法
- 在Windows XP上安装Oracle11gR2时出错
- frameset的操作
- LinkedList,ArrayList和Vector
- The print command (Korn shell only)
- C语言存储类型
- 一个过滤特殊字符的JS!
- POJ 1163 The Triangle
- 技术没有头
- VC虚函数布局引发的问题
- 深入理解Android消息处理系统——Looper、Handler、Thread
- 记珠海一游
- 网络选择 | Phone | 自定义ListPreference | Handler | 切换网络的AT指令
- Can External Tables Be Placed inside ASM diskgroups [ID 470989.1]
- SQL优化过程中常见Oracle中"HINT"的30个用法