This commit is contained in:
lb 2023-05-11 14:04:55 +08:00
parent 4e0f88c5ea
commit bdccab85c9

View File

@ -9,7 +9,10 @@ function handleData(e) {
let latestData = null
try {
const latestData = JSON.parse(e.data)
console.log(latestData)
console.log('处理数据: ', latestData)
for ([value, key] in Object.entries(latestData)) {
console.log('k, v', key, value)
}
} catch (err) {
console.log(e)
}