用javascript在页面里面写入内容

 时间:2024-10-13 12:35:06

1、新建html文件

用javascript在页面里面写入内容

2、document.write写入内容

用javascript在页面里面写入内容

3、预览效果如图

用javascript在页面里面写入内容

4、document.write写入多条内容

用javascript在页面里面写入内容

5、预览效果如图

用javascript在页面里面写入内容

6、换行写的话必须加入反斜杠\

用javascript在页面里面写入内容

7、向控制台中书写内容

用javascript在页面里面写入内容

8、预览效果如图

用javascript在页面里面写入内容

9、书写特殊符号也要加入\

用javascript在页面里面写入内容

10、预览效果如图,附上代码<script type="text/javascript"> document.write('aaa'); document.write('<br/>'); document.write('bbb'); document.write('ccc'); document.write('ddd'); document.write('<br/>'); document.write('hello \ world'); document.write('<br/>'); document.write('hello \'world'); console.log('向控制台中书写内容'); </script>

用javascript在页面里面写入内容
  • Win10如何开启暗黑主题
  • Visio怎样自定义创建样式
  • WPS图片怎么设置文件穿透
  • 太荒初境天元果如何获得
  • Windows7:[19]开始菜单
  • 热门搜索
    六年级画画图片大全 答案大全 酒柜效果图大全2020款 附件炎怎么检查 多宝鱼的做法大全 星座大全 种子大全 360怎么了 宝宝起名字大全 生日英文怎么写