💻 Code Runner
Run small code snippets in your browser sandbox — quick experiments without installing anything.
预览
💻 控制台
0
控制台输出将显示在这里
new Function、Web Worker 或 iframe sandbox,隔离程度依次增强。allow-same-origin,不能读取父页或本地文件;sandbox 本身不阻断网络,因此本工具在预览文档内注入 CSP default-src 'none',默认禁止外部 fetch/图片/字体等出站请求,也没有提供“允许网络”开关。如代码需要外部资源,请自行在本地环境验证。Run small code snippets in your browser sandbox — quick experiments without installing anything.
在线代码运行器是一款纯前端代码编辑与预览工具,支持 HTML、CSS、JavaScript 三种语言的实时编辑和运行。
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Execution isolation | untrusted code must run sandboxed without network or file access | OWASP guidance |
| Resource limits | no CPU time or memory limits; infinite loops may make the page unresponsive | OWASP guidance |
| Same-origin policy | in-browser execution is bounded by SOP and CSP | W3C CSP Level 3 |