1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-03-23 19:02:01 +01:00

Start again

This commit is contained in:
2020-10-04 17:14:00 +02:00
parent c0d3912413
commit 091f119048
4382 changed files with 1762543 additions and 9606 deletions

View File

@@ -0,0 +1,27 @@
function processAQI(arr) {
for (var i = 0; i < arr.length; i++) {
var line = arr[i];
var aqi = line[1];
if (aqi <= 50) {
line[7] = '"优"';
}
else if (aqi <= 100) {
line[7] = '"良"';
}
else if (aqi <= 150) {
line[7] = '"轻度污染"';
}
else if (aqi <= 200) {
line[7] = '"中度污染"';
}
else if (aqi <= 300) {
line[7] = '"重度污染"';
}
else {
line[7] = '"严重污染"';
}
}
console.log(arr.join('],\n ['));
}