본문 바로가기
개발/javascript

script 마지막 형제 찾기 예제 children() last()

by 향유 2021. 4. 2.

 

        console.log($('#item_list').children().last());

 

 

function delForm() {
//    console.log();
    var length = $('#item_list').children().length;
    if(length>1){
        console.log($('#item_list').children().last());
    }
}

댓글