Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

format

  • format(str: string, args: Record<string, any>): string

字符串格式化

Parameters

  • str: string

    要进行格式化的值

  • args: Record<string, any>

    格式化参数值,替换字符串中的 {} 的值

Returns string

替换完成的字符串

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.