📜  javascriptgenerate number id - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:52.683000             🧑  作者: Mango

代码示例1
var date = new Date();
var components = [
    date.getYear(),
    date.getMonth(),
    date.getDate(),
    date.getHours(),
    date.getMinutes(),
    date.getSeconds(),
    date.getMilliseconds()
];

var id = components.join("");