检索数据:
- // 1. Open up the database
- OpenIDB().then((db) => {
- const dbStore = 'users';
- // 2. Open a new read-only transaction with the store within the database
- const transaction = db.transaction(dbStore);
- const store = transaction.objectStore(dbStore);
- // 3. Return the data
- return store.get('Ire Aderinokun');
- }).then((item) => {
- console.log(item);
- })
删除数据:
- // 1. Open up the database
- OpenIDB().then((db) => {
- const dbStore = 'users';
- // 2. Open a new read/write transaction with the store within the database
推荐阅读
自本年4月起,全军各医疗机构将同一应用新版“部队干部健康体检信息治理体系”实施体检信息治理。记者获悉,该体检舷?容身部队医疗机构实际,为干部健康体检工作量身订制,是全>>>详细阅读
本文标题:客户端(浏览器端)数据存储技术概览
地址:http://www.17bianji.com/lsqh/34619.html
1/2 1

网友点评
精彩导读
科技快报
品牌展示