Skip to content

createTimeRandId

时间+固定位数的随机数字字符串

示例

ts
import { createTimeRandId } from '@base-web-kits/base-tools-ts';
const traceId = createTimeRandId(); // '1763002648039123456'
const traceId = createTimeRandId(8); // '176300264803912345678'

版本

  • 1.0.0 新增