storage (2) 썸네일형 리스트형 Client Side Storage - Indexed DB indexed db is a client storage. It is similar to web storage but can save more data than web storage. Think of indexed db as a database where you can create, add, edit, and delete. For every tasks, you have to connect to the database first. Create open(“dbName”, version): this opens a database or creates one if not exists. The schema of a database differs by the version. const req = window.index.. Client Side Storage - Web Storage Web storage API allows to store data on user’s browser. Web storage is more secure as it dose not send data to a server and has larger storage limit than cookie. HTML has two web storage objects: localStorage: No expiry date for the data stored sessionStorage: Data lost when session (browser) closed How to Use? We can use ‘setItem(‘key’, ‘value’) to store data, getItem(‘key’) for get stored data.. 이전 1 다음