您可以使用jQuery的:nth-child()选择器;
$("li:nth-child(even)") // target even li's$("li:nth-child(odd)") // target odd li's$("li:nth-child(5n)") // target the fifth li
您可以使用jQuery的:nth-child()选择器;
$("li:nth-child(even)") // target even li's$("li:nth-child(odd)") // target odd li's$("li:nth-child(5n)") // target the fifth li