??? ??(?? ?? ?? ??)adj. ???, ???? ?? ?? ?, ??
adv.
jquery last() ??? ???
??: last()? ???? ?? ??? ??? ??? ??? ????.
??: ??.last()
??: DOM ?? ???? ???? jQuery ??? ???? .last() ???? ????? ???? ??? ???? ? jQuery ??? ?????.
jquery last() ??? ?
<!DOCTYPE html> <html> <head> <style>.highlight{background-color: yellow}</style> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> <p><span>Look:</span> <span>This is some text in a paragraph.</span> <span>This is a note about it.</span></p> <script>$("p span").last().addClass('highlight');</script> </body> </html>
??? ????? ??? "???? ??" ??? ?????