焦点图文
在线测试
留言咨询
在线实验
实践教学
教学内容
document.write("<h1>This is a heading</h1>"); document.write("<p>This is a paragraph</p>");
亲自试一试
提示:您只能在 HTML 输出中使用 document.write。如果您在文档加载后使用该方法,会覆盖整个文档。