How do I iterate through this JSON object in jQuery?

后端 未结 4 2133
自闭症患者
自闭症患者 2020-12-07 22:53

I have a JSON object which is generated by PHP. It\'s an object with a set of dates. It has the timeStamp and then a formatted version of the date. How would I iterate throu

4条回答
  •  臣服心动
    2020-12-07 23:03

    You use $.each().
    It looks like this:

    $.each(data, function(n, elem) {
        // here you process your data to data loaded to lines               
    });
    

提交回复
热议问题