1 <!DOCTYPE html>
 2 <html>
 3 <head lang="en">
 4     <meta charset="UTF-8">
 5     <title></title>
 6 </head>
 7 <body>
 8  <script>
 9      /**打印1-100之间所有的数字**/
10      function printNum(){
11          for(var i=1;i<=100;i++){
12              console.log(i);
13          }
14      }
15  </script>
16 <button onclick="printNum()">100</button>
17 </body>
18 </html>

 

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2022-01-13
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-12-09
相关资源
相似解决方案