JS can "display" data in different ways:

(1)Writing into an alert box, using window.alert();

1 <!DOCTYPE html>
2 <html>
3 <body>
4 <h1>My first example.</h1>
5 <script>
6 window.alert(5 * 6);
7 </script>
8 </body>
9 </html>
View Code

相关文章:

  • 2021-10-13
  • 2021-07-23
  • 2021-05-19
  • 2021-09-03
  • 2021-10-24
  • 2022-02-28
  • 2021-06-06
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2021-04-24
  • 2021-09-20
  • 2021-09-12
  • 2021-09-18
  • 2021-08-05
相关资源
相似解决方案