Options
All
  • Public
  • Public/Protected
  • All
Menu

Module modules/storage

Functions

Const clearSession

  • clearSession(): void
  • 清空session

    Returns void

Const clearStorage

  • clearStorage(): void
  • 清空localStorage

    Returns void

Const getSession

  • getSession(name: string): any
  • 获取sessionStorage

    Parameters

    • name: string

    Returns any

Const getStorage

  • getStorage(name: string): string
  • 获取localStorage指定项

    Parameters

    • name: string

    Returns string

Const removeSession

  • removeSession(name: string): void
  • 删除sessionStorage指定项

    Parameters

    • name: string

    Returns void

Const removeStorage

  • removeStorage(name: string): void
  • 删除localStorage指定项

    Parameters

    • name: string

    Returns void

Const setSession

  • setSession(name: string, content: any): void
  • 存储sessionStorage

    Parameters

    • name: string
    • content: any

    Returns void

Const setStorage

  • setStorage(name: string, content: any): void
  • 存储localStorage

    Parameters

    • name: string
    • content: any

    Returns void

Generated using TypeDoc