Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/445.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何对多个值使用javascript映射功能_Javascript - Fatal编程技术网

如何对多个值使用javascript映射功能

如何对多个值使用javascript映射功能,javascript,Javascript,我有以下格式的传感器数据: zdata= {“数据”:[ { “时间戳”:10, “传感器id”:1, “温度”:14.5, "哼":十三,, “光”:11, }, { “时间戳”:20, “传感器id”:1, “临时工”:18, "哼":12,, “光”:20, }, { “时间戳”:5, “传感器id”:2, “温度”:24.5, "哼":12,, “光”:15, }, { “时间戳”:20, “传感器id”:2, “温度”:29.5, "哼":12,, “光”:2, } ] };

我有以下格式的传感器数据:

zdata=
{“数据”:[
{
“时间戳”:10,
“传感器id”:1,
“温度”:14.5,
"哼":十三,,
“光”:11,
},
{
“时间戳”:20,
“传感器id”:1,
“临时工”:18,
"哼":12,,
“光”:20,
},
{
“时间戳”:5,
“传感器id”:2,
“温度”:24.5,
"哼":12,,
“光”:15,
},
{
“时间戳”:20,
“传感器id”:2,
“温度”:29.5,
"哼":12,,
“光”:2,
}
]
};