上一页 1 ··· 414 415 416 417 418 419 420 421 422 ··· 492 下一页
摘要: To cache photo, You need to spreate cache db to save the photo. So in wittr example, we cache the text already, if there in the wittr there is photo, 阅读全文
posted @ 2016-05-22 03:50 Zhentiw 阅读(331) 评论(0) 推荐(0)
摘要: When we save items to IndexDB, we need to think about clean the items or keep those in a short list. 阅读全文
posted @ 2016-05-21 22:30 Zhentiw 阅读(188) 评论(0) 推荐(0)
摘要: In this lesson, you will learn how to host a static website on Amazon S3. I will show you how to create the buckets, create the bucket policy to allow 阅读全文
posted @ 2016-05-20 15:11 Zhentiw 阅读(439) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2016-05-20 00:44 Zhentiw 阅读(231) 评论(0) 推荐(0)
摘要: 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)
摘要: CSS combinators allows us to reference the DOM relationship between two or more elements in CSS. 阅读全文
posted @ 2016-05-17 22:41 Zhentiw 阅读(217) 评论(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 阅读(188) 评论(0) 推荐(0)
上一页 1 ··· 414 415 416 417 418 419 420 421 422 ··· 492 下一页