我有以下代码:
$(this).children("a:eq(0)").append('<img src="'+ (arrowsvar.down[1])
+'" class="' + (arrowsvar.down[0])
+ '" style="border:0;" />'
);
现在我想删除最后附加的元素(图像).请提出建议.
Now I want to remove last appended element (an image). Please give suggestions.
作为替代方案,对于那些喜欢更多程序化方式和语法的人:
As an alternative, for those who likes more programmatic ways and syntax:
$('#container-element img').last().remove();