Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

downloadString

  • downloadString(str: string, filename?: string): Promise<void>

在浏览器上下载文本内容

Parameters

  • str: string

    字符串内容

  • filename: string = "unknown.txt" Default value

    下载文件名,没有则默认为链接中的文件名

Returns Promise<void>

  • 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.