if(key == '电导率1'){
p.format = (row) =>{ return parseInt(row.ddl1) }
}
if(key == 'PM2.5'){
p.format = (row) =>{ return parseInt(row["PM2.5"]) }
}
错误写法 : row.PM2.5
正确写法 : row.["val"]
if(key == '电导率1'){
p.format = (row) =>{ return parseInt(row.ddl1) }
}
if(key == 'PM2.5'){
p.format = (row) =>{ return parseInt(row["PM2.5"]) }
}
错误写法 : row.PM2.5
正确写法 : row.["val"]