我该如何在JavaScript中获取这个关联数组的值?
我只需要电子邮件地址,而不是标签。
我只需要电子邮件地址,而不是标签。
(
{
office = ("my@email.com");
home = ("ahome@anotheremail.com");
work = ("nothing@email.com");
},
{
home = ("test@test.se");
}
)
更新:首选输出格式为JSON:
{
"data": [
{
"email": "my@email.com"
},
{
"email": "ahome@anotheremail.com"
},
{
"email": "nothing@email.com"
},
{
"email": "test@test.se"
}
]
}
感谢所有的反馈!