#.end()表示又回到父级,可以设置父级的样式,直接用$('ul li')不能体现出.end()作用
$('.list').children().css({color:'red'}).end().css({background:'green'})
#.end()表示又回到父级,可以设置父级的样式,直接用$('ul li')不能体现出.end()作用
$('.list').children().css({color:'red'}).end().css({background:'green'})