运行 ❯
获取您
自有
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>With "use strict":</h2> <h3>For security reasons, eval() is not allowed to create variables in the scope from which it was called.</h3> <p>Activate debugging in your browser (F12) to see the error report.</p> <script> "use strict"; eval ("var x = 2"); alert (x); // This will cause an error </script> </body> </html>