[英]How to store array in localStorage?
I have to store an array in window.localStorage
. 我必须在
window.localStorage
存储一个数组。 How would I store the array in window.localStorage
using console window? 如何使用控制台窗口将数组存储在
window.localStorage
?
EX:
cards: Array[0]
length: 0
I have to store this. 我必须存放这个。 Now here key is cards and length is nested.
现在这里的关键是卡片和长度嵌套。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.