第一个JavaScript变量

Original 2019-04-30 10:08:13 224
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>JavaScript</title><script type="text/javascript" src="js/index.js"></

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>JavaScript</title>

<script type="text/javascript" src="js/index.js"></script>

<script type="text/javascript">

  var a=1;

  //while循环

  while(a<9){

  document.write("<br/>");

  document.write(a);


  a=a+1;

  }

  document.write("<hr>");

  // do..while循环

  var b=1;

  do{

  document.write("<br/>");

  document.write(b);

  b=b+1;

  }while(b<10);


</script>

</head>

<body>


</body>

</html>


Correcting teacher:查无此人Correction time:2019-05-05 09:23:17
Teacher's summary:完成的不错,刚学习js比较辛苦,因为js有逻辑了。要坚持,继续加油。

Release Notes

Popular Entries