var str="23QWERTYUIOPASDFGHJKLZXCVBNM1456789zxcvbnmasdfghjklqwertyuiop";
var res='';
for(var i=0;i<4;i++){
res+=str[Math.floor(Math.random()*str.length)];
}
console.log(res);
var str="23QWERTYUIOPASDFGHJKLZXCVBNM1456789zxcvbnmasdfghjklqwertyuiop";
var res='';
for(var i=0;i<4;i++){
res+=str[Math.floor(Math.random()*str.length)];
}
console.log(res);

被折叠的 条评论
为什么被折叠?