有9份数据,用红绿蓝黄紫青等9种颜色,每一份数据包含10个数组,每个数组对应一个序号,每个数组的长度都是31,请使用一个json数组描述这9份数据。并使用js提取红第5个数组的数据。
时间: 2024-01-22 12:20:11 浏览: 142
json-of-color-:颜色的json
下面是一个描述这9份数据的json数组示例:
```javascript
[
{
"color": "红",
"data": [
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31],
[2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64],
[3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96],
[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128],
[5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,150,155,160],
[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192],
[7,14,21,28,35,42,49,56,63,70,77,84,91,98,105,112,119,126,133,140,147,154,161,168,175,182,189,196,203,210,217,224],
[8,16,24,32,40,48,56,64,72,80,88,96,104,112,120,128,136,144,152,160,168,176,184,192,200,208,216,224,232,240,248,256],
[9,18,27,36,45,54,63,72,81,90,99,108,117,126,135,144,153,162,171,180,189,198,207,216,225,234,243,252,261,270,279,288]
]
},
{
"color": "绿",
"data": [
[1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59,61],
[2,6,10,14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94,98,102,106,110,114,118,122,126],
[3,9,15,21,27,33,39,45,51,57,63,69,75,81,87,93,99,105,111,117,123,129,135,141,147,153,159,165,171,177,183,189],
[4,12,20,28,36,44,52,60,68,76,84,92,100,108,116,124,132,140,148,156,164,172,180,188,196,204,212,220,228,236,244,252],
[5,15,25,35,45,55,65,75,85,95,105,115,125,135,145,155,165,175,185,195,205,215,225,235,245,255,265,275,285,295,305,315],
[6,18,30,42,54,66,78,90,102,114,126,138,150,162,174,186,198,210,222,234,246,258,270,282,294,306,318,330,342,354,366,378],
[7,21,35,49,63,77,91,105,119,133,147,161,175,189,203,217,231,245,259,273,287,301,315,329,343,357,371,385,399,413,427,441],
[8,24,40,56,72,88,104,120,136,152,168,184,200,216,232,248,264,280,296,312,328,344,360,376,392,408,424,440,456,472,488,504],
[9,27,45,63,81,99,117,135,153,171,189,207,225,243,261,279,297,315,333,351,369,387,405,423,441,459,477,495,513,531,549,567]
]
},
{
"color": "蓝",
"data": [
[1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91],
[2,8,14,20,26,32,38,44,50,56,62,68,74,80,86,92,98,104,110,116,122,128,134,140,146,152,158,164,170,176,182,188],
[3,12,21,30,39,48,57,66,75,84,93,102,111,120,129,138,147,156,165,174,183,192,201,210,219,228,237,246,255,264,273,282],
[4,16,28,40,52,64,76,88,100,112,124,136,148,160,172,184,196,208,220,232,244,256,268,280,292,304,316,328,340,352,364,376],
[5,20,35,50,65,80,95,110,125,140,155,170,185,200,215,230,245,260,275,290,305,320,335,350,365,380,395,410,425,440,455,470],
[6,24,42,60,78,96,114,132,150,168,186,204,222,240,258,276,294,312,330,348,366,384,402,420,438,456,474,492,510,528,546,564],
[7,28,49,70,91,112,133,154,175,196,217,238,259,280,301,322,343,364,385,406,427,448,469,490,511,532,553,574,595,616,637,658],
[8,32,56,80,104,128,152,176,200,224,248,272,296,320,344,368,392,416,440,464,488,512,536,560,584,608,632,656,680,704,728,752],
[9,36,63,90,117,144,171,198,225,252,279,306,333,360,387,414,441,468,495,522,549,576,603,630,657,684,711,738,765,792,819,846]
]
},
{
"color": "黄",
"data": [
[1,5,9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121],
[2,10,18,26,34,42,50,58,66,74,82,90,98,106,114,122,130,138,146,154,162,170,178,186,194,202,210,218,226,234,242,250],
[3,15,27,39,51,63,75,87,99,111,123,135,147,159,171,183,195,207,219,231,243,255,267,279,291,303,315,327,339,351,363,375],
[4,20,36,52,68,84,100,116,132,148,164,180,196,212,228,244,260,276,292,308,324,340,356,372,388,404,420,436,452,468,484,500],
[5,25,45,65,85,105,125,145,165,185,205,225,245,265,285,305,325,345,365,385,405,425,445,465,485,505,525,545,565,585,605,625],
[6,30,54,78,102,126,150,174,198,222,246,270,294,318,342,366,390,414,438,462,486,510,534,558,582,606,630,654,678,702,726,750],
[7,35,63,91,119,147,175,203,231,259,287,315,343,371,399,427,455,483,511,539,567,595,623,651,679,707,735,763,791,819,847,875],
[8,40,72,104,136,168,200,232,264,296,328,360,392,424,456,488,520,552,584,616,648,680,712,744,776,808,840,872,904,936,968,1000],
[9,45,81,117,153,189,225,261,297,333,369,405,441,477,513,549,585,621,657,693,729,765,801,837,873,909,945,981,1017,1053,1089,1125]
]
},
{
"color": "紫",
"data": [
[1,6,11,16,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101,106,111,116,121,126,131,136,141,146,151],
[2,12,22,32,42,52,62,72,82,92,102,112,122,132,142,152,162,172,182,192,202,212,222,232,242,252,262,272,282,292,302,312],
[3,18,33,48,63,78,93,108,123,138,153,168,183,198,213,228,243,258,273,288,303,318,333,348,363,378,393,408,423,438,453,468],
[4,24,44,64,84,104,124,144,164,184,204,224,244,264,284,304,324,344,364,384,404,424,444,464,484,504,524,544,564,584,604,624],
[5,30,55,80,105,130,155,180,205,230,255,280,305,330,355,380,405,430,455,480,505,530,555,580,605,630,655,680,705,730,755,780],
[6,36,66,96,126,156,186,216,246,276,306,336,366,396,426,456,486,516,546,576,606,636,666,696,726,756,786,816,846,876,906,936],
[7,42,77,112,147,182,217,252,287,322,357,392,427,462,497,532,567,602,637,672,707,742,777,812,847,882,917,952,987,1022,1057,1092],
[8,48,88,128,168,208,248,288,328,368,408,448,488,528,568,608,648,688,728,768,808,848,888,928,968,1008,1048,1088,1128,1168,1208,1248],
[9,54,99,144,189,234,279,324,369,414,459,504,549,594,639,684,729,774,819,864,909,954,999,1044,1089,1134,1179,1224,1269,1314,1359,1404]
]
},
{
"color": "青",
"data": [
[1,7,13,19,25,31,37,43,49,55,61,67,73,79,85,91,97,103,109,115,121,127,133,139,145,151,157,163,169,175,181],
[2,14,26,38,50,62,74,86,98,110,122,134,146,158,170,182,194,206,218,230,242,254,266,278,290,302,314,326,338,350,362,374],
[3,21,39,57,75,93,111,129,147,165,183,201,219,237,255,273,291,309,327,345,363,381,399,417,435,453,471,489,507,525,543,561],
[4,28,52,76,100,124,148,172,196,220,244,268,292,316,340,364,388,412,436,460,484,508,532,556,580,604,628,652,676,700,724,748],
[5,35,65,95,125,155,185,215,245,275,305,335,365,395,425,455,485,515,545,575,605,635,665,695,725,755,785,815,845,875,905,935],
[6,42,78,114,150,186,222,258,294,330,366,402,438,474,510,546,582,618,654,690,726,762,798,834,870,906,942,978,1014,1050,1086,1122],
[7,49,91,133,175,217,259,301,343,385,427,469,511,553,595,637,679,721,763,805,847,889,931,973,1015,1057,1099,1141,1183,1225,1267,1309],
[8,56,104,152,200,248,296,344,392,440,488,536,584,632,680,728,776,824,872,920,968,1016,1064,1112,1160,1208,1256,1304,1352,1400,1448,1496],
[9,63,117,171,225,279,333,387,441,495,549,603,657,711,765,819,873,927,981,1035,1089,1143,1197,1251,1305,1359,1413,1467,1521,1575,1629,1683]
]
},
{
"color": "橙",
"data": [
[1,8,15,22,29,36,43,50,57,64,71,78,85,92,99,106,113,120,127,134,141,148,155,162,169,176,183,190,197,204,211],
[2,16,30,44,58,72,86,100,114,128,142,156,170,184,198,212,226,240,254,268,282,296,310,324,338,352,366,380,394,408,422,436],
[3,24,45,66,87,108,129,150,171,192,213,234,255,276,297,318,339,360,381,402,423,444,465,486,507,528,549,570,591,612,633,
阅读全文