Jquery와 Ajax에서 responseText의 일부를 분리하고 싶습니다.Jquery Ajax find ("p") in responseText
$.ajax ({
url : "/controller/action",
complete : function (xhr, result)
{
if (result != "success") return;
var response = xhr.responseText;
var title = $(response).find("p");
title.appentTo ("#description");
}
});
내가 response
을 위해 잘 작동하지만
.find("p")
?
선택기를 받아 들일 수 [타일은() $ 내부에 있습니다] ? – Tadeck
코드에 오타가 있습니다. 광고와 함께 appendTo 여야하고 $ 연산자가 누락되었습니다 ($ 연산자가 누락되었습니다) – Aaron
수정했지만 여전히 작동하지 않습니다. 동일한 오류가 있습니다 : 304 Not Modified – Maxxx