码迷,mamicode.com
首页 >  
搜索关键字:pwa    ( 231个结果
[PWA] 15. Using The IDB Cache And Display Entries
We want to use IDB to store the wittr messages. The logic is when the page start: In openDatabase(), we create Wittr db, set id as primary key and tim ...
分类:数据库   时间:2016-05-20 06:10:26    阅读次数:372
[PWA] 11. Serve skeleton cache for root
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: ...
分类:系统相关   时间:2016-05-18 06:52:39    阅读次数:179
[PWA] 13. New db and object store
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 ...
分类:数据库   时间:2016-05-18 06:51:49    阅读次数:203
[PWA] 14. Loop cursor
...
分类:其他好文   时间:2016-05-18 06:51:15    阅读次数:165
[PWA] 12. Intro to IndexedDB
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 ...
分类:数据库   时间:2016-05-18 06:50:19    阅读次数:220
[PWA] 10. Trigger a version update
When the refersh button is clicked, we need to tell the waiting service worker to replace the current service worker right away. Then we refresh the p ...
分类:其他好文   时间:2016-05-17 06:24:53    阅读次数:227
[PWA] 9. Service worker registerion && service work's props, methods and listeners
In some rare cases, you need to ask user to refresh the browsser to update the version. Maybe because some secrity issues. As we have learnt so far. A ...
分类:其他好文   时间:2016-05-17 06:22:03    阅读次数:305
[PWA] 8. Delete old cache and only keep one
So once you modify the code, service worker will auto create a new one and it won't take control over until the previous service work total die(close ...
分类:系统相关   时间:2016-05-16 21:58:26    阅读次数:223
[PWA] 7. First Cache when installed
If you want your application works offline or lie-wifi. You need to use cache. API: Create Caches: Create single cache: Get the cache: When to start c ...
分类:系统相关   时间:2016-05-16 21:50:43    阅读次数:870
[PWA] 5. Hijacking one type of request
Previously we saw how to Hijacking all the reqest, but this is not useful. So now we want to see how to Hijacking one kind of request. For example we ...
分类:其他好文   时间:2016-05-16 07:05:02    阅读次数:237
231条   上一页 1 ... 20 21 22 23 24 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!