九九乘法表 作业题

xiaoxiao2021-03-01  46

var str = "<table width='800' align='center' border='1' rules='all'>"; for(var i=1;i<=9;i++){ str += "<tr>"; for(var j=1;j<=i;j++){ str += "<td>"+j+"×"+i+"="+(j*i)+"</td>"; } str += "</tr>"; } str += "</table>"; document.write(str);
转载请注明原文地址: https://www.6miu.com/read-3449969.html

最新回复(0)