我有一个动态来自数据库的 JSON 数据,见下文:
[["15","0.027","0.137","0.353","0.044","0.111","0.024","2013-07-30 17:45:06"],["17","0.027","0.137","0.353","0.044","0.111","0.024","2013-07-30 17:50:14"],["19","0.017","0.137","0.353","0.044","0.111","0.024","2013-07-30 17:55:35"],["21","0.017","0.137","0.353","0.044","0.111","0.024","2013-07-30 18:00:34"],["23","0.017","0.137","0.353","0.044","0.111","0.024","2013-07-30 18:05:10"],["25","0.017","0.137","0.353","0.044","0.111","0.024","2013-07-30 18:10:07"] and so on..
所以结构如下[time1, time2, time3, time4, time5, time5, time7, TimeStamp]
我需要实现的是最终得到 7 个新的 JSON,其结构如下:
json1 = [time1,TimeStamp]
json2 = [time2,TimeStamp]
json3 = [time3,TimeStamp]
json4 = [time4,TimeStamp]
and so on..
我需要这个实现到 jQPLot 有人可以帮忙吗?谢谢