Function nowTimestamp

  • 获取当前时间的时间戳

    Parameters

    • _: undefined
    • unit: "s" | "ms" = 'ms'

      时间戳单位,'ms' 为毫秒,'s' 为秒

    Returns string

    返回当前时间的时间戳(根据单位)