function myId () {
const time = new Date().getTime().toString()
const timeArr = time.split('')
const arr = 'abcdefghijklmnopqrstuvwxyz'.split('')
timeArr.forEach((item, index) => {
const random = arr[Math.floor(Math.random() * arr.length)]
timeArr.splice(index * 2, 0, random)
})
return timeArr.join('')
}
取得字符串类似这样子: "c1n6m2v3v0e5c1v9a5s8g5h3p0"
应该不会重复吧 嘿嘿