UNPKG

itools.js

Version:

前端开发中常用的工具方法

10 lines (9 loc) 204 B
/** * 不重复ID */ const uniqueId = () => { let time = (+ new Date).toString(36) let random = Math.random().toString(36).split('.')[1] return `${time}_${random}` } export default uniqueId