1
2
3
4
5
6
7
8
9
10
11
<html>
<script type ="text/javascript">
var i,j;
 
for (i=1;i<10;i++){
for (j=1;j<i;j++){ document.write("a") }
document.write("<br />");
}
 
</script>
</html>

  http://www.runoob.com/js/js-tutorial.html

主要在这个网址学习

HTML/CSS/JS 在线工具