remove last append element jquery

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

I have the following code:

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

        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 18:23

    The code from the original question may generate errors (using "this" with the selector). Try the following approach:

    $("#container-element img:last-child").remove()
    

提交回复
热议问题