代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript">
for(var i=1;i<10;i++){
for(j=1;j<=i;j++){
document.write(j+'*'+i+'='+(i*j)+' ');
}
document.write('<br>');
}
</script>
</head>
<body>
</body>
</html>
结果如下: