window.localStorage
来源:互联网 发布:数据库被黑客删除 编辑:程序博客网 时间:2024/06/06 18:38
API
window.localStorage.getItem('key')
: equal to window.localStorage['key']
; return the value (String) stored before; return null if not existing. window.localStorage.setItem('key', 'value')
: store key/value to localStorage; Be aware that value
must be String. If passing in an object, toString()
method will be called and returned value (‘[object Object]’) will be stored. You should use JSON.stringify()
transform the object to String for storage. window.localStorage.removeItem('key')
: remove the key/value stored earlier. It will do nothing if the key does not exist.
Browser compatibility
阅读全文
0 0
- window.localStorage
- window.localStorage
- window.localStorage
- window.localStorage(1)
- window.localStorage(2)
- html5的window.localStorage
- Window.sessionStorage&localStorage
- £. 关于 HTML5 本地缓存 Window.localStorage
- IEueditor无法使用-window.localstorage报错
- localStorage
- localstorage
- LocalStorage
- localstorage
- localStorage
- localStorage
- localStorage
- localstorage
- localStorage
- 用到过的git开源库
- MariaDB GTID复制
- Spring Boot基础知识(二)----用spring initializer构建spring boot的web项目
- Cool Edit之生成.pk文件问题
- Java的抽象类
- window.localStorage
- linux--xargs常用场景
- HTC_VRTK_手柄发射射线获取碰撞物体信息
- NDK 导入.a
- 使用MySQL遇到的8个比较具有代表性的问题
- EditText
- 【机器学习-西瓜书】三、逻辑回归(LR);线性判别分析(LDA)
- 【Anaconda】Jupyter Notebook介绍
- Servlet(二)