remove last append element jquery

后端 未结 5 947
慢半拍i
慢半拍i 2020-12-23 17:50

I have the following code:

$(this).children(\"a:eq(0)\").append(\'

        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-23 18:13

    As an alternative, for those who likes more programmatic ways and syntax:

    $('#container-element img').last().remove();
    

提交回复
热议问题