zoukankan      html  css  js  c++  java
  • javascript入门之算术乘法表

    <!DOCTYPE html>
    <html>
      <head>
        <title>算术乘法表</title>
        
        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        
        <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    
      </head>
      <script language="javascript">
       function show(){
       var i;
       var j;
       for(i=1;i<=9;i++){
          for(j=1;j<=i;j++){
          document.write(j+"*"+i+"="+i*j);
          document.write("&nbsp&nbsp");
          }
          document.write("<br/>");
       }
       }
      </script>
      <body>
        <input type="button" value="算术乘法表" onclick="show()"/>
        <br>
      </body>
    </html>
  • 相关阅读:
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Android随笔
    Codeforces Round #551题解
  • 原文地址:https://www.cnblogs.com/gaochunhui/p/11031704.html
Copyright © 2011-2022 走看看