지정된 Function 개체의 본문에 해당하며 실행 중인 Function 개체를 반환한다.

Script[oVal=]arguments.callee
HTML없음
[functionObj.]arguments.callee
인수
functionObj : (기능함수 개체)

선택적인 요소인 functionObj 인수는 현재 실행 중인 Function 개체의 이름이다.

arguments : (인수 배열변수 개체)

callee 속성은 관련된 기능함수가 실행될 때만 사용 가능한 arguments 개체의 구성원이다.

oVal : (속성 개체)
callee 속성값은 지정된 Function 개체의 본문에 해당하며 실행 중인 Function 개체이다.

callee 속성의 초기 값은 실행 중인 Function 개체이므로 익명 기능함수를 반복할 수 있다.

특기

callee 속성은 기능함수 속에서만 사용이 가능하다.

기능함수 속에서 argumentsthis 문장으로 참조할 수 없으므로 arguments.callee로 호출하여야 한다.



property
callee 속성
callee</b> 속성이전페이지로페이지 맨위로페이지 맨아래로

간단한 callee 속성 예제

calleeTest(0) :
1
calleeTest(4) :
function calleeTest(numb){ if (numb<=0) return arguments.callee.length else return arguments.callee; }
calleeTest(9) :
function calleeTest(numb){ if (numb<=0) return arguments.callee.length else return arguments.callee; }
<SCRIPT>
function calleeTest(numb){ // 기능함수를 시작한다.
  if (numb<=0)  return arguments.callee.length // callee 길이
  else return arguments.callee; // callee 내용, 기능함수
} // 기능함수 종료
document.write('calleeTest(0) :<BR><font color=blue>'+calleeTest(0)+'</font><BR>');
document.write('calleeTest(4) :<BR><font color=blue>'+calleeTest(4)+'</font><BR>');
document.write('calleeTest(9) :<BR><font color=blue>'+calleeTest(9)+'</font><BR>');
</SCRIPT>

property
callee 속성
견본
이전페이지로페이지 맨위로
최종 수정:
06/01/2025 21:11:47
KoXo Homepage
All right reserved
비정상적인 방식으로 프레임없이 페이지에 접속하면 자주 오류가 발생됩니다.
오류가 나면 정상적 접속으로 시도해 보세요.
http://koxo.com/lang/js/property/callee.html