📜  jquery remove child 1 elemtn - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:12.229000             🧑  作者: Mango

代码示例3
$(this).find('span:first');
$(this).find(':first-child');
$(this).find('span').eq(0);

// Note that you don't need to use $(deleteElement) as deleteElement is already a jQuery object. So you can do it like this:
$(this).find('span:first').remove();