我正在努力想出如何用https://github.com/Marak/faker.js生成大写字母,但还没有找到解决方案
有什么想法吗?
发布于 2018-03-28 03:42:22
看起来不像在伪装中有这样的功能,所以你自己做吧:
const randomCapital = () => String.fromCharCode(65 + Math.floor(Math.random() * 26));
console.log(randomCapital());
https://stackoverflow.com/questions/49525696
复制相似问题