U E D R , A S I H C RSS

Java Script/2011년스터디/박정근

Difference between r1.1 and the current

@@ -1,5 +1,4 @@
#title Java Script/2011년스터디/박정근
Describe [Java Script/2011년스터디/박정근] here
{{{
<HTML>
<HEAD>


<HTML>
<HEAD>
<TITLE>JAVASCRIPT EX - 1/11</TITLE>
 <SCRIPT LANGUAGE ="JavaScript">
  function addition(x, y){
	s=x+" -> "+y
	document.write("Infor : "+s,"<br>")
  }
 </SCRIPT>
</HEAD>
<BODY>
 <SCRIPT LANGUAGE="JavaScript">
  <!--
  person=new Object();
  person.name='박정근'
  person.phone='01036395856'
  person.ID='20101526'

  arr=new Array();

  for (var i in person)
  {
	  addition(i,person[i]);
	  arr[i]=person[i];
  }

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

  for (var i in person)
  {
	document.write("arr[" + i + "] = " + arr[i] + " <br>    length : " + arr[i].length,"<br>");
  }

  try{
	throw person.ID.length;
  } catch(e){
	if (e==8)
	{
		alert("학부생입니다");
	}
	else{
		alert("학부생이 아닙니다")
	}
  }
  -->
 </SCRIPT>
</BODY>
</HTML>
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:33
Processing time 0.0248 sec