<!doctype html>
<html>
<head>
<meta charset="utf-8">
<body>
<script>
var i,j,z;
for(i=1;i<10;i++){
for(j=1;j<=i;j++){
document.write( j+"*"+i+"="+(i*j));
if(j!=i){
document.write(' ')
}
};
document.write('<br/><br/>')
};
</script>
</body>
</head>
</html>
转载于:https://www.cnblogs.com/su1637/p/8256880.html