@iap Packages
    Preparing search index...

    Function hasStorage

    • 检查 key 是否存在于 localStorage 加密模式下自动对 key 加密后再查找

      Parameters

      • key: string

        存储键(明文)

      Returns boolean

      key 存在时返回 true

      hasStorage('token')  // true / false