有什么办法可以停止执行eval的执行吗?

问题描述 投票:0回答:1

有什么方法可以暂停执行 eval() 像这样在Javascript中执行。

const Code = eval(/* Insert loop here */)
setTimout(() => {
  Code.kill()
  console.log('eval execution ended!')
}, 1000)
javascript eval
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.