Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の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
と$.each
$.each
$.each(data, function(key, value){ console.log(value); });
これを試して
$.each(data, function(key, value){ console.log(value.join('-')); });