1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title>JavaScript简介</title>
 6     </head>
 7     <body>
 8         <script type="text/javascript">
 9             window.alert('欢迎大家学习我们的JavaScript课程,一分耕耘一分收获,希望大家多多练习代码')
10         </script>
11     </body>
12 </html>
 1 <!DOCTYPE html>
 2 <html>
 3     <head>
 4         <meta charset="utf-8">
 5         <title>JavaScript两个常用的客户端输出方法</title>
 6     </head>
 7     <body>
 8         <script type="text/javascript">
 9             // document.write(str)
10             document.write('为了变得更好,我早已用尽全力');
11             //window.alert(str)
12             window.alert('灰牛个人博客网址http://www.dhnblog.com/')
13         </script>
14     </body>
15 </html>

相关文章:

  • 2019-07-15
  • 2021-04-30
  • 2021-06-23
  • 2021-09-19
  • 2021-08-19
  • 2021-07-20
猜你喜欢
  • 2021-09-04
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
  • 2021-12-31
  • 2019-02-10
相关资源
相似解决方案