1
다음 코드에서 s_arr.topics.length보다 큰 .e_data를 제거하는 방법 예를 들어 s_arr.topics.length = 2 및 $ (".e_data") 인 경우. 이 경우 길이 = 5 ..Then이이배열에없는 요소를 jquery에서 제거합니다.
if($(".e_data").length > s_arr.topics.length)
{
$('.e_data').last().remove();
}
당신이 가진 태그를 삭제하려는 뜻'length' 's_arr.topics.length'보다? –