var legend=[{"min":0,
"max":first_color,
"color":"#1a9850"
},
{
"min":first_color,
"max":sec_color,
"color":"#fee08b"
},
{
"min":sec_color,
"max":thrd_color,
"color":"#ff3300"
},
{
"min":thrd_color,
"max":frth_color,
"color":"#d73027"
"Abc":"gsfg"
}
];
Run Code Online (Sandbox Code Playgroud)
我想找出每个对象的属性数.例如,前3个对象有3个属性,第4个有4个道具等.