-2

我的 JSON 数据就像

{
    "Brand":["EM-03","TORRES"],
    "Price":["5.00000","10.00000","15.00000"],
    "Country":["US","SG"]
}

我想循环该 JSON 数据以获取

Brand = 
  EM-03 -
  TORRES

Price = 
  5.00000 -
  10.00000 -
  15.00000

Country = US - SG
4

2 回答 2

1

$.each

$.each(data, function(key, value){
   console.log(value); 
});
于 2013-02-01T03:19:12.260 回答
0

尝试这个

$.each(data, function(key, value){
   console.log(value.join('-')); 
});
于 2013-02-01T03:26:42.387 回答