小程序中生成随机字符串/时间戳

console.log(Math.random().toString(36).substr(2, 15));
console.log(parseInt(new Date().getTime() / 1000));

发布了145 篇原创文章 · 获赞 24 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/xiaobinqt/article/details/83745938