返回列表 發帖
  1. <meta charset="UTF-8">
  2.                 <TITLE>比大小</TITLE>
  3.         </head>
  4.         <body>
  5.                 <script type="text/javascript">
  6.                 var yh=0;
  7.                 var head=0;
  8.                  yh=praseInt(prompt("yh is:"));
  9.                 head=praseInt(prompt("head is :"));
  10.                 document.write(yh);
  11.                 document.write(head);
  12.                 if (yh>head) {
  13.                         alert("yh>head")
  14.                 };
  15.                 else if (yh<head) {
  16.                         alert(yh<head)
  17.                 };

  18.                 else {
  19.                         alert(alertyh=head)
  20.                         }

  21.                 </script>
  22.         </body>
  23. </html>
複製代碼

TOP

返回列表