九九乘法表

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
td {
    border: #000 1px solid;
}
</style>
<script>
  document.write('<table>');
  for(var i = 1; i <= 9; i++){
      document.write('<tr>');
      for(var j = 1; j <= i; j++){
          document.write('<td>'+i+'*'+j+'='+i*j+'</td>');
      }
      document.write('</tr>');
  }
  document.write('</table>');
</script>
</head>

<body>
</body>
</html>

 

posted @ 2016-11-14 21:52  WANGJUN59451  阅读(130)  评论(0编辑  收藏  举报