import { UUID } from 'angular2-uuid';

let uuid = UUID.UUID().replace(/-/g, '').toLocaleUpperCase();

需要全局引入

参考:

https://www.cloudhadoop.com/2018/10/angular-uuid-generate-unique-identifier.html

https://www.npmjs.com/package/angular2-uuid

相关文章:

  • 2022-12-23
  • 2021-12-18
  • 2021-08-12
猜你喜欢
  • 2022-12-23
  • 2022-01-07
  • 2021-10-31
  • 2021-08-20
相关资源
相似解决方案