摘要: 1.javascript// 获取长度为len的随机字符串function _getRandomString(len) { len = len || 32; var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; // 默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1 var maxPos = $chars.length; var pwd = ''; for (i = 0; i < len; i++) { pwd += $chars.charAt(Math.floor(Ma 阅读全文
posted @ 2012-10-09 13:46 碧落京豪 阅读(580) 评论(0) 推荐(0) 编辑