and
英[?nd] 美[?nd, ?n,?nd]
conj. n. ??; ??; ??; ??
vt.
jquery andSelf() ?? ???
??: add() ???? ??? ?? ?? ??? ?? ??? ?????.
??: ??.andSelf()
jquery andSelf() ?? ?
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <style> p, div { margin:5px; padding:5px; } .border { border: 2px solid red; } .background { background:yellow; } </style> </head> <body> <div> <p>First Paragraph</p> <p>Second Paragraph</p> </div> <script> $("div").find("p").andSelf().addClass("border"); $("div").find("p").addClass("background"); </script> </body> </html>
??? ????? ??? "???? ??" ??? ?????