객체 this
본문
function b(){
console.log(this)
}
var a = {
on:b()
}
b함수안의 this가 a객체를 가르키게하려면 어떻게 해야 하나요?
답변을 작성하시기 전에 로그인 해주세요.
function b(){
console.log(this)
}
var a = {
on:b()
}
b함수안의 this가 a객체를 가르키게하려면 어떻게 해야 하나요?