document.write("<table align='center'>");
for (let i = 1; i <= 9; i++){
document.write("<tr>");
for(let j = 1; j <= i; j++){
document.write("<td>");
document.write(i + "x" + j + "=" + (i * j)+ "   ");
document.write("</td>");
}
document.write("</tr>");
}
document.write("</table>");
javascript写个九九乘法表
猜你喜欢
转载自blog.csdn.net/weixin_45867397/article/details/106752884
今日推荐
周排行