From bdccab85c948eb909c09bddb25b97eb64347685b Mon Sep 17 00:00:00 2001 From: lb Date: Thu, 11 May 2023 14:04:55 +0800 Subject: [PATCH] add --- src/utils/wsClass.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) }