Rails 앱에서 PJAX를 사용하려고하는데 콘솔의 응답에 새 html 콘텐츠가 표시되지만 요청이 성공했지만 콘텐츠가 대체되지 않습니다. jquery.pjax에서 다음 오류가 발생합니다. 성공한 후 Pjax가 데이터를 대체하지 못함
Uncaught TypeError: Object function (selector, context) {
// The jQuery object is actually just the init constructor 'enhanced'
return new jQuery.fn.init(selector, context, rootjQuery);
} has no method 'parseHTML'
내 pjax 코드는 잘 그것을 구문 분석하는 전체 페이지를 기대 pjax의 jQuery로해야 할 일을했을 것 같다,
$(document).pjax('a','.main-container', {timeout:5000, replace: true})