This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12562|Reply: 1

[JavaScript] html javascrip remove t to make 9 times 9 published (99 multiplication table)

[Copy link]
Posted on 5/22/2015 3:05:43 PM | | | |


Enter any number and it will be automatically generated

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head runat="server">
  4.     <title>js1</title>
  5.     <scrip去掉t type="text/javascrip去掉t" >
  6.         function jjcf() {
  7.             var c = document.getElementById("txtnum").value;
  8.             for (var i = 1; i <= c; i++) {
  9.                 for (var j = 1; j <= i; j++) {
  10.                     document.write(j + "*" + i + "=" + j * i + "  ");
  11.                 }
  12.                 document.writeln("<br>");
  13.             }
  14.         }
  15.     </scrip去掉t>
  16. </head>
  17. <body>
  18.     <form id="form1" runat="server">
  19.     <div>
  20.         <input id="txtnum" type="text" /><input id="btn1" type="button" value="确定" onclick="jjcf();" />
  21.     </div>
  22.     </form>
  23. </body>
  24. </html>
Copy code






Previous:Linux builds VPN, PPTPD one-click installation script
Next:The difference between innerHTML and innerText
Posted on 5/22/2015 10:33:06 PM |
The landlord is really powerful
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com