'javascript 익명함수'에 해당되는 글 1건

  1. 2009.09.15 javascript 익명함수 예제
반응형

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE> New Document </TITLE>
  <META NAME="Generator" CONTENT="EditPlus">
  <META NAME="Author" CONTENT="">
  <META NAME="Keywords" CONTENT="">
  <META NAME="Description" CONTENT="">
  <SCRIPT LANGUAGE="JavaScript">
  <!--
 var sayHi = new Function("to","alert('hi'+to);");

 function test(imsi){
  sayHi(imsi);
 }
  //-->
  </SCRIPT>
 </HEAD>

 <BODY>
  <input type="button" value="123" onClick="test('바보');"/>
 

 </BODY>
</HTML>

Posted by 1010