Skip to Content
만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
book

만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술

by 한민주, 양찬석, 탈 아터
April 2019
Beginner to intermediate
368 pages
7h 18m
Korean
Hanbit Media, Inc.
Content preview from 만들면서 배우는 프로그레시브 웹 앱: 사용자 경험을 극대화하는 차세대 웹 앱 기술
6 IndexedDB로 로컬에 데이터 저장하기
- 193
저장한 데이터가 절대 삭제되지 않도록 하고 싶다면, 크롬과 오페라의 실험용 신규
API
를 사용하여 기기에 지속적인 저장 권한을 요청할 수 있도록 합니다.
if
(
navigator
.
storage
&&
navigator
.
storage
.
persist
)
{
navigator
.
storage
.
persist
().
then
(
function
(
granted
)
{
if
(
granted
)
{
console
.
log
("
Data will not be deleted automatically
");
}
});
}
저장 권한이 한번 부여되면 저장된 모든 데이터가 기기에 의해 자동으로 지워지는 일
은 없을 것입니다. 오직 사용자의 명시적 액션에 의해서만 삭제될 수 있습니다.
6.7
서비스 워커에서 IndexedDB 사용하기
7
장에서는 서비스 워커 내에서
reservations
객체 저장소에 접근하는 방법에
대해 살펴봅니다. 다행히도
IndexedDB
는 페이지에서 접근하는 것과 동일한 방
식으로 서비스 워커 내에서 접근할 수 있습니다.
열심히 작업한 모든
IndexedDB
코드를 다시 작업해야 하는 일이 생기지 않도록
하려면,
reservations
-
store
.
js
가 페이지와 마찬가지로 서비스 워커에서도 잘
작동하는지 확인해야 합니다.
이를 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

파이썬으로 웹 크롤러 만들기: 초간단 나만의 웹 크롤러로 원하는 데이터 가져오는 방법

한선용, 라이언 미첼

Publisher Resources

ISBN: 9791162248737