search

Home  >  Q&A  >  body text

Find out how to get the content of [{},{},{}]

//Please help me understand the attributes of [{},{}]

var ara = [{s:"s"},{a:"a",e:"500"}, {b:"b",f:"400"}];

var he = "";

for(var i=0;i<ara.length;i ){

};

alert(he);


奇遇奇遇2088 days ago1370

reply all(2)I'll reply

  • 殘留の回憶

    殘留の回憶2019-03-14 09:10:26

    This is obviously data in json format. Just convert it into an array and then loop through it to get the value.

    reply
    0
  • Cancelreply