contains
UK [k?n'te?nz] US [k?n'te?nz]
vt.(contains? 3?? ???), contain,accommodate
v. ); ?? ;??
jquery?? ???? ???? ????. ???
??: :contains ???? ??? ???? ???? ??? ?????. ???? ?? ?? ?? ????? ?? ?? ?? ??? ???? ? ????. ??? ???? ??? ??? ??? ??? ???? ?? ?? ??/???? ?? ???? ??? ????(?? ? ??).
??: ??$(":contains(text)")
????: text ?????. ?? ???? ?????.?
jquery?? ???? ???? ????. ?
<html> <head> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("p:contains(is)").css("background-color","#B2E0FF"); }); </script> </head> <body> <html> <body> <h1>Welcome to My Homepage</h1> <p class="intro">My name is Donald</p> <p>I live in Duckburg</p> <p>My best friend is Mickey</p> <div id="choose"> Who is your favourite: <ul> <li>Goofy</li> <li>Mickey</li> <li>Pluto</li> </ul> </div> </body> </html> </body> </html>
??? ????? ??? "???? ??" ??? ?????