JS

var chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz0123456789'
console.log(chars.charAt(Math.floor(Math.random() * chars.length)))

原文地址:https://www.cnblogs.com/500m/p/12051442.html