代码如下:$(document).ready(function () { $(‘#Top .Toolbar1 .CentreBox .Menu .List1 li’).mouseenter(function () { var index = $(this).parent().children().index(this); $(this).parent().children().each(function () { if ($(this).hasClass(‘Select’)) { $(this).remove