var Mydata =
{
"prop1":
[
{ "a": "parties", "b": "0.006" , "c": "0.9"},
{ "a": "royal-challenge", "b": "0.02" , "c": "0.333" },
{ "a": "star-speak","b": "0.02","c":"0.1" }
],
"prop2":
[
{ "a": "parties","b": "0.006" , "c": "0.9"},
{ "a": "star-speak","b": "0.02", "c": "0.009" }
],
"prop3":
[
{ "a": "parties","b": "0.006" , "c": "0.9"}
]
};
我的目标是返回 a,b,c 的值,如下所示--->
parties,0.006,0.9
royal-challenge,0.02,0.333 and so on for all the properties.
我在迭代中遇到问题。
我正在做这样的事情---:
for(var i in Mydata){
return i[a],i[b],i[c]
}