From f73f8f9bfa9f197745ff23d9a92d9f70756773d6 Mon Sep 17 00:00:00 2001 From: xuxiaobo-bobo <826814133@qq.com> Date: Tue, 18 Jul 2023 15:46:49 +0800 Subject: [PATCH] '07182' --- env_xbb_lastest_bo/tools/envFuncBom.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/env_xbb_lastest_bo/tools/envFuncBom.js b/env_xbb_lastest_bo/tools/envFuncBom.js index 2ba9e0de..607100bd 100644 --- a/env_xbb_lastest_bo/tools/envFuncBom.js +++ b/env_xbb_lastest_bo/tools/envFuncBom.js @@ -1172,19 +1172,13 @@ "timeoutID": bodavm.memory.globalInit.timeoutID, 'settime_name': 'setTimeout' }; - if (delay == 0) { - // debugger - console.log_copy(`window_setTimeout `, `delay->为0 立马开始执行`); - func.call(this, argList) - } - else { if (bodavm.memory.asyncEvent.setTimeout === undefined) { bodavm.memory.asyncEvent.setTimeout = []; } // bodavm.toolsFunc.symbolProperty(event) bodavm.memory.asyncEvent.setTimeout.push(event); - } + return bodavm.memory.globalInit.timeoutID; }; @@ -1246,16 +1240,11 @@ "timeoutID": bodavm.memory.globalInit.timeoutID, 'settime_name': 'setInterval' }; - //if (delay == 0) { - // debugger - // console.log_copy(`window_setInterval `, `delay->为0 立马开始执行`); - // func.call(this, argList) - // } else { if (bodavm.memory.asyncEvent.setTimeout === undefined) { bodavm.memory.asyncEvent.setTimeout = []; } - //} + // bodavm.toolsFunc.symbolProperty(event) bodavm.memory.asyncEvent.setTimeout.push(event);