D
D
Dmitry2018-02-22 13:53:57
JavaScript
Dmitry, 2018-02-22 13:53:57

Why doesn't Chrome display localStorage correctly?

I decided to add saves to my TuDu. I started reading about localStorage and made a couple of examples to see how it works. And I discovered a strange thing that bothers me a lot. The bottom line is: I add two values ​​\u200b\u200bto the storage, like this

localStorage.setItem("Ключ Номер 1", "Значение номер 1")
localStorage.setItem("Ключ Номер 2", "Значение номер 2")

Well, in order to see how it was displayed, I open the console
5a8ea0e24220f353712158.png
itself, and there: Not only was a value written to the key, but also only one, although there should be 2 values.
I already thought the code was not correct, or I even did something wrong, but I checked it in Mozilla, and everything is right there:
5a8ea127b1ade910788142.png
What could be the reason for this? Maybe some special setting is needed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Legaal, 2018-02-22
@ueruxon

This thing covers the sign, just slide it
BA0NMnZCBWXoPm.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question