Options
All
  • Public
  • Public/Protected
  • All
Menu

esf

Index

Variables

Const units

units: ReadonlyArray<any> = ['B', 'KB', 'MB', 'GB']

Functions

downloadImg

  • downloadImg(href: string, filename?: string): void
  • Parameters

    • href: string
    • Default value filename: string = ""

    Returns void

downloadImgByName

  • downloadImgByName(url: string, filename: string): void
  • Parameters

    • url: string
    • Optional filename: string

    Returns void

formatNumberBlank

  • formatNumberBlank(str: string): string

formatSize

  • formatSize(s: number): any

getUrlParams

  • getUrlParams(name: string, url: string): any
  • Parameters

    • name: string
    • Optional url: string

    Returns any

isBigLetter

  • isBigLetter(str: string): boolean

isCN

  • isCN(str: string): boolean

isDomain

  • isDomain(d: string): boolean

isFloat

  • isFloat(n: string): boolean

isInteger

  • isInteger(n: string): boolean

isIp

  • isIp(ip: string): boolean

isLetter

  • isLetter(str: string): boolean

isLowLetter

  • isLowLetter(str: string): boolean

isMobilePhone

  • isMobilePhone(p: string): boolean

isNumberLetter

  • isNumberLetter(str: string): boolean

isTelePhone

  • isTelePhone(p: string): boolean

isValidUrl

  • isValidUrl(u: string): boolean

Const queryUrlParm

  • queryUrlParm(url: string): any

sleep

  • sleep(ms: number): Promise<any>

Generated using TypeDoc