Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LSCacheFiles

Index

Constructors

constructor

Properties

__LS__MAP

__LS__MAP: LSConfig

needFullUpdate

needFullUpdate: boolean

Methods

checkCanLocalStorage

  • checkCanLocalStorage(): boolean

checkFileAndCache

  • checkFileAndCache(url: string, version: number): void
  • 1.判断本地是否有存储该文件 2.判断版本是否相同 之后决定请求文件还是直接使用缓存

    Parameters

    • url: string
    • version: number

    Returns void

checkUsedSpace

  • checkUsedSpace(): number

init

  • init(options: object): void

loadFileAndCache

  • loadFileAndCache(url: string, version: number): void
  • 请求文件并缓存

    Parameters

    • url: string
    • version: number

    Returns void

needUpdate

  • needUpdate(): boolean
  • 检查是否需要更新 根据 配置文件来决定是否全量更新

    Returns boolean

    boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc