diff --git a/src/utils/wsClass.js b/src/utils/wsClass.js index 381520e..4248711 100644 --- a/src/utils/wsClass.js +++ b/src/utils/wsClass.js @@ -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) }