1. 2013. 11. 14. 22:54 개발자료/W3C
자바스크립트에서 함수는 개체로 표현 됩니다
그러면 함수를 개채처럼 사용하는것도 가능하게 됩니다
var a=function(){
 return this.a;
}
a.value = 100;
a.call(a); [ a() 의 경우 상속자가 window ]

두개를 참고
a.prototype.constructor
a.prototype
Posted by Nightly Luna
,
® © Tanny Tales
/ rss