编程教程 - 技术改变世界
编程教程提供了 JS 在线测试工具,可在线测试 JavaScript 代码,你可以在代码编辑器中输入 JavaScript 代码并点击运行查看结果。
源代码
点击运行
<!DOCTYPE html> <html> <body> <h1>template 元素</h1> <script> if (document.createElement("template").content) { document.write("您的浏览器支持 template!"); } else { document.write("您的浏览器不支持 template!"); } </script> </body> </html>
运行结果