js 如何生成随机字符串

2022-12-15 09:54:18
``` Math.random().toString(36).substr(2) // 通常生成约10~12个字符的随机字符串 ```