js for循环99乘法表

document.write("<table>");

for(var x = 1;x<=9;i++){

 document.write("<tr>");

 for(var y = 1;y<=x;y++){

 document.write("<td>" + x + "*" + y + "=" + x*y + "</td>");

}

document.write("</tr>");

}

document.write("</table>")

猜你喜欢

转载自blog.csdn.net/qq_19249021/article/details/79141512
今日推荐