举例子(Object):
obj={
studentName:'许版',
temperature:37.1,
attendanceDate:'2020/05/30 20:00:00',
captureUrl:defaultImg,
isOverTemp:"",
channelName:'滨安路1187号',
className:'班级A',
studentCode:'',
}
// 处理数据,所有为null,空的,都返回“--”
isExistence(obj){
for(let key in obj){
if(obj[key]===null||obj[key]===""){
obj[key]="--"
}
}
return obj
}