📜  角度生成 guid - Javascript 代码示例

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

代码示例1
>> npm i guid-typescript --save

import { Guid } from 'guid-typescript';
export class GuidExample {
    public id: Guid;
    constructor() {
        this.id = Guid.create(); // ==> b77d409a-10cd-4a47-8e94-b0cd0ab50aa1
    }
}