//获取验证码
function YanzhengM() {
//随机生成验证码
var code = new Array(
'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
'0123456789'
);
var idx, i;
var result = "";
for (i = 0; i < 5; i++) {
idx = Math.floor(Math.random() * 3);
result += code[idx].substr(Math.floor(Math.random() * (code[idx].length)), 1);
}
alert(result);
}
06-01
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交