mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 18:26:01 +08:00
'07182'
This commit is contained in:
parent
e42b4ada4e
commit
f73f8f9bfa
@ -1172,19 +1172,13 @@
|
|||||||
"timeoutID": bodavm.memory.globalInit.timeoutID,
|
"timeoutID": bodavm.memory.globalInit.timeoutID,
|
||||||
'settime_name': 'setTimeout'
|
'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) {
|
if (bodavm.memory.asyncEvent.setTimeout === undefined) {
|
||||||
bodavm.memory.asyncEvent.setTimeout = [];
|
bodavm.memory.asyncEvent.setTimeout = [];
|
||||||
}
|
}
|
||||||
// bodavm.toolsFunc.symbolProperty(event)
|
// bodavm.toolsFunc.symbolProperty(event)
|
||||||
bodavm.memory.asyncEvent.setTimeout.push(event);
|
bodavm.memory.asyncEvent.setTimeout.push(event);
|
||||||
}
|
|
||||||
|
|
||||||
return bodavm.memory.globalInit.timeoutID;
|
return bodavm.memory.globalInit.timeoutID;
|
||||||
};
|
};
|
||||||
@ -1246,16 +1240,11 @@
|
|||||||
"timeoutID": bodavm.memory.globalInit.timeoutID,
|
"timeoutID": bodavm.memory.globalInit.timeoutID,
|
||||||
'settime_name': 'setInterval'
|
'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) {
|
if (bodavm.memory.asyncEvent.setTimeout === undefined) {
|
||||||
bodavm.memory.asyncEvent.setTimeout = [];
|
bodavm.memory.asyncEvent.setTimeout = [];
|
||||||
}
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
// bodavm.toolsFunc.symbolProperty(event)
|
// bodavm.toolsFunc.symbolProperty(event)
|
||||||
bodavm.memory.asyncEvent.setTimeout.push(event);
|
bodavm.memory.asyncEvent.setTimeout.push(event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user