我有一个带有附加日期的值的数组。
-x[0].value = 5, x[0].time = "Mon 24 April 2012"
-x[1].value = 12, x[1].time = "Mon 24 April 2012"
-x[2].value = 11, x[2].time = "Mon 23 April 2012"
-x[3].value = 2, x[3].time = "Mon 20 April 2012"
-x[4].value = 11, x[4].time = "Mon 20 April 2012"
-x[5].value = 7, x[5].time = "Mon 20 April 2012"
-x[6].value = 7, x[6].time = "Mon 20 April 2012"
如何根据该数组中的相似日期创建许多数组。例如,我想要的一天结束。
data1 数组将包含:
-x[0].value = 5, x[0].time = "Mon 24 April 2012"
-x[1].value = 12, x[1].time = "Mon 24 April 2012"
data2 数组将包含:
-x[2].value = 11, x[2].time = "Mon 23 April 2012"
data3 数组将包含:
-x[3].value = 2, x[3].time = "Mon 20 April 2012"
-x[4].value = 11, x[4].time = "Mon 20 April 2012"
-x[5].value = 7, x[5].time = "Mon 20 April 2012"
-x[6].value = 7, x[6].time = "Mon 20 April 2012"
您的帮助将不胜感激。