【发布时间】:2017-07-01 00:48:53
【问题描述】:
我很少有数据作为对象数组存储在本地存储中,例如
[{"id":0,"firstname":"test","lastname":"test","email":"test@test.com"},
{"id":1,"firstname":"demo","lastname":"demo","email":"demo@demo.com"}];
我想在文本框中显示用户登录的数据。当我写 localStorage.getItem('key_users') 时,它显示了所有用户的详细信息,但是如何获取特定索引的用户的详细信息?
【问题讨论】: