随机数生成

 const fileId = Math.random().toString(36).slice(-6)
        const randomName = `${md5Hash(fileId)}`

 

new Date().getTime().toString(36)

 

posted @ 2021-05-18 11:57  hjswlqd  阅读(46)  评论(0编辑  收藏  举报