js 短信验证码 6位数字

版权声明:转载请评论留言 https://blog.csdn.net/solocao/article/details/85248324

其死后就一样代码,比较简单,但是非常常用

const code = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);

猜你喜欢

转载自blog.csdn.net/solocao/article/details/85248324
今日推荐