文档:https://www.npmjs.com/package/uuid
安装
npm i uuid
示例
const { v4: uuidv4 } = require("uuid"); console.log(uuidv4()); // 92b8a6bd-f1fd-4b52-b8a0-6178a0e76828
文档:https://www.npmjs.com/package/uuid
安装
npm i uuid
示例
const { v4: uuidv4 } = require("uuid"); console.log(uuidv4()); // 92b8a6bd-f1fd-4b52-b8a0-6178a0e76828