Options
All
  • Public
  • Public/Protected
  • All
Menu

微信小程序 Storage 适配器。

由于微信小程序的 wx.getStorageSync 方法对于不存在的项目会返回 空字符串, 导致无法判断项目是否存在, 因此,该适配器对存储的内容做了一层封装, 以保证相关操作的结果可确定。

Hierarchy

Index

Methods

clear

  • clear(): Promise<void>

clearSync

  • clearSync(): void

get

  • get(k: string): Promise<any>

getSync

  • getSync(k: string): any

remove

  • remove(k: string): Promise<void>

removeSync

  • removeSync(k: string): void

set

  • set(k: string, v: any): Promise<void>

setSync

  • setSync(k: string, v: any): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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