<ul>
<li>John</li>
<li>Karl</li>
<li>Brandon</li>
</ul>
<ul>
<li>Glen</li>
<li>Tane</li>
<li>Ralph</li>
</ul>
$("ul li:last-child")
[ <li>Brandon</li>, <li>Ralph</li> ]
$("ul li:first-child")
[ <li>John</li>, <li>Glen</li> ]
$("ul li:last")
[ <li>Ralph</li> ]
欢迎光临 苏飞论坛 (http://www.sufeinet.com/) | Powered by Discuz! X3.4 |