循环
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--循环共有三种-->
<!--<script type="text/javascript">
var x = 18;
var i = 0;
for (var i = 1 ; i <=x ; i++) {
//var相当于java当中的int double
document.write("不要感觉可以少,后期写程序的是时候,少了会带来很多麻烦");
}
while(x < 20){
document.write("这是while循环");
x++;
}
//do{
// }while();
</script>-->
<script type="text/javascript">
for(var i = 0; i <= 5 ; i++){
for(var j = 0; j<=i ; j++){
document.write("♥")
}
document.write("<br />")
}
</script>
</head>
<body>
</body>
</html>