this
this
ํจ์ํธ์ถ
function func(){
if(window === this){
document.write("window === this");
}
}
func(); //window === this๋ฉ์๋์ ํธ์ถ
var o = {
func : function(){ //๋ฉ์
if(o === this){
document.write("o === this");
}
}
}
o.func(); //o === this์์ฑ์์ ํธ์ถ
apply, call

Last updated