2010-01-23 4 views

답변

1

문제에 대한 가장 간단한 해결 방법은 AJAX 호출에 의해 반환 된 HTML에 jTruncate 생성자를 호출하는 것입니다. 좋아요 :

$.ajax(
{ 
    success: function (html) // HTML is returned 
    { 
     // Enable jTruncate on the HTML 
     var truncatedHTML = $(html).jTruncate(/* options */); 

     // Append the HTML to your page 
     $("element to append to").append(truncatedHTML); 
    } 
}); 
+0

오늘 시도해 보겠습니다. –