나는 PHP 파일에 jQuery.post
을하고 있는데, 파일 반환 값이 나입니다.
질문 : 왜 $(this)
dosent 콜백 함수에서 작동합니까? $(this)
를 사용하여 보여 줄게 통과 어떤 경고, 수익률이 경우 this
나에게 null
$(".class").live("focusout", function(){
jQuery.post("phpfile.php",
{
someValue: someValue
},
function(data)
{
// why the $(this) dosent work in the callback ?
}
)
});
감사합니다. 작품의 perfetc. –
'.post()'대신 ['.ajax()'] (http://api.jquery.com/jQuery.ajax/)를 사용하면'context' 옵션을 설정할 수 있습니다. – Wiseguy
@Wiseguy : 끝 부분에 대해 살펴 보겠습니다. –