代码如下:
<html> <script> var code = "{ /* Jerry test generation */; debugger; console.log(\"Jerry\");}"; var testFunc = new Function(code); testFunc(); </script> </html>
运行效果:
单步执行,进入testFunc函数:
VM8标签就出现了:
2021-10-17 05:07:10
代码如下:
<html> <script> var code = "{ /* Jerry test generation */; debugger; console.log(\"Jerry\");}"; var testFunc = new Function(code); testFunc(); </script> </html>
运行效果:
单步执行,进入testFunc函数:
VM8标签就出现了: