提交 1bbadbf1 编写于 作者: 刘兴

优化验证码大小写问题

上级 33069326
......@@ -107,9 +107,14 @@
for (var i = 0; i < show_num.length; i++) {
str += show_num[i];
}
console.log(code.toUpperCase());
if (code === str) {
return true;
} else {
}else if(code.toUpperCase() === str.toUpperCase()){
return true;
}else if(code.toLowerCase() === str.toLowerCase()){
return true;
}else {
return false;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册