<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript">
for(var i=1;i<10;i++){
for(var j=1;j<=i;j++){javascript
document.write(i+'*'+j+'='+(i*j));
document.write(' ');
}
document.write('<br/>');html
}java
</script>
</head>
<body>
</body>
</html>數組
用兩層for循環進行一下遍歷數組htm