摘要:
import idb from 'idb'; var dbPromise = idb.open('test-db', 4, function (upgradeDb) { switch (upgradeDb.oldVersion) { case 0: // keyval store is already created at version 1 ... 阅读全文
posted @ 2016-05-18 04:34
Zhentiw
阅读(226)
评论(0)
推荐(0)
摘要:
Create a db: The oldVersion switch between old db and new db. So here we create a new people db. ReadWrite: Group By:TO do gourp by we need to create 阅读全文
posted @ 2016-05-18 04:04
Zhentiw
阅读(225)
评论(0)
推荐(0)
摘要:
Use the library indexedDB-promised. Create a database and stroe: Notice put() function take value frist then key. Read the key in stroe: Write value t 阅读全文
posted @ 2016-05-18 03:41
Zhentiw
阅读(223)
评论(0)
推荐(0)
摘要:
Intead of cache the root floder, we want to cache skeleton instead. Respond to requests for the root page with thepage skeleton from the cache: 阅读全文
posted @ 2016-05-18 03:15
Zhentiw
阅读(194)
评论(0)
推荐(0)

浙公网安备 33010602011771号