<script type="text/javascript">
for (var i = 1; i < 10; i++)
{
for (var j = 1; j <= i; j++) {![](https://img-blog.csdn.net/20131127111815984?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY196aGFuZ3lhbmc=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
document.write(i + "*" + j + "=" + i * j + "\n");
}
document.write( "<br>");
}
</script>
for (var i = 1; i < 10; i++)
{
for (var j = 1; j <= i; j++) {
document.write(i + "*" + j + "=" + i * j + "\n");
}
document.write( "<br>");
}
</script>