D
D
Destell2018-10-14 17:55:32
JavaScript
Destell, 2018-10-14 17:55:32

Is it possible to use LocalStorage for individual pages?

Is it possible to use LocalStorage for individual pages? It is required that data from LS be pulled up only on those pages from which it was saved.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2018-10-14
@Destell

The task is not very clear from the question.
But, most likely, you just need to add the page address to the key: When reading, respectively, add this address to the key. {"/articles/42-your-item": "foo"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question