javascript输出是运行代码输出的表现形式,常见的有alert  console.log  document.write 等,javascript中三种输出方式总结

1,alert()方式

  这种是弹出窗口的形式

<script>

alert("1222");

</script>

2,console.log调试模式

  谷歌浏览器,火狐浏览器控制台可以显示

3,document.write 网页形式打印输出

  document.write()打印输出

文章来自  96net.com.cn

相关文章:

  • 2021-12-27
  • 2021-08-09
  • 2021-05-28
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2021-10-24
  • 2021-06-14
  • 2021-06-29
相关资源
相似解决方案