1.下载包 yarn add uuid 2.引入 import {v4 as uuid} from 'uuid' 3.使用 list:[ { id:uuid(), name:张三, age:18 } ]