常用

function str (len = 16) {
const str = 'qwertyuioplkjhgfdsazxcvbnm1092837465POLKMNIJUHBYGVTFCRDXZSEWQA';
let sum = '';
for (let i = 0; i< len; i++) {
sum += str.substr(Math.round(Math.random() * 62), 1)
};
return sum;
}

 

posted @ 2023-03-19 21:03  W-it-H-ou-T  阅读(161)  评论(0编辑  收藏  举报