:nth-child('index value')//Get the specified element The position of a child element under the index starts from 1;
//Even rows
//$('li:nth-child(even)').addClass('class1');
/ /Odd lines
//$('li:nth-child(odd)').addClass('class1');
//First line
//$('li: nth-child(1)').addClass('class1');
//$('li:first-child').addClass('class1');
//Only 1 child Element
$('li:only-child').addClass('class1');