📅  最后修改于: 2022-03-11 15:04:21.339000             🧑  作者: Mango
let ID = (length = 6) => {
// new Date() will return current time
// getTime() method returns the number of milliseconds* since the Unix Epoch.
// -length to get last items on string
return new Date().getTime().toString().slice(-length);
}