上一页 1 ··· 416 417 418 419 420 421 422 423 424 ··· 494 下一页
摘要: 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 阅读(228) 评论(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 阅读(225) 评论(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 阅读(196) 评论(0) 推荐(0)
摘要: CSS combinators allows us to reference the DOM relationship between two or more elements in CSS. 阅读全文
posted @ 2016-05-17 22:41 Zhentiw 阅读(219) 评论(0) 推荐(0)
摘要: Learn how to use console.table to render arrays and objects in a tabular format for easy scanning over the values. We'll create some mock data and the 阅读全文
posted @ 2016-05-17 21:21 Zhentiw 阅读(191) 评论(0) 推荐(0)
摘要: Learn to use console.time with console.timeEnd to get accurate timings of operations in javascript. This tool can help with javascript profiling and p 阅读全文
posted @ 2016-05-17 21:14 Zhentiw 阅读(176) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2016-05-17 03:35 Zhentiw 阅读(322) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2016-05-17 02:54 Zhentiw 阅读(478) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2016-05-16 21:19 Zhentiw 阅读(243) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2016-05-16 20:11 Zhentiw 阅读(306) 评论(0) 推荐(0)
上一页 1 ··· 416 417 418 419 420 421 422 423 424 ··· 494 下一页