摘要:
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, 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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: 阅读全文
摘要:
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 阅读全文