📜  如何在打字稿代码示例中生成 uuid

📅  最后修改于: 2022-03-11 14:48:12.442000             🧑  作者: Mango

代码示例1
first npm install --save-dev @types/uuid
sec :import { v4 as uuid } from 'uuid';
third :const id: string = uuid();