Options
All
  • Public
  • Public/Protected
  • All
Menu

Functions

Functions

downloadUrl

  • downloadUrl(url: string, filename?: string): Promise<void>

根据 url 下载二进制资源

Parameters

  • url: string

    下载请求信息

  • filename: string = url.substr(url.lastIndexOf('/')) 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.