Options
All
  • Public
  • Public/Protected
  • All
Menu

Module localStorage/clean

Index

Functions

Functions

clean

0.0.35 provide
  • clean(name?: string): boolean
  • 将当前的localStorage全部进行清楚

    remarks

    清除当前localStorage中某一个key值 如果不传递key值,默认清空所有值

    Parameters

    • Optional name: string

      需要清除的key值名称

    Returns boolean