is
?? [?z] US [?z]
vt.& vi. is (be? ???)
n? ?????
???? is() ??? ???
??: is()? ???, ?? ?? jQuery ??? ???? ???? ?? ??? ???? ??? ?? ? ?? ??? ??? ?? ??? ???? true? ?????.
??: ??.is(selector)
????:
???? | Description |
??? ?, ???? ??? ??? ??? ?? . |
??: ?? ??? ??? ?? .is()? ? jQuery ??? ???? ????. ??, ??? ???? ??? jQuery ??? ??? ? ????. ?? ??? ???? ?? ?? ???? ??? ??? ????.
???? is() ??? ?
<!DOCTYPE html> <html> <head> <style>div { color:red; }</style> <script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> </head> <body> <form><p><input type="checkbox" /></p></form> <div></div> <script> var isFormParent = $("input[type='checkbox']").parent().is("form"); $("div").text("isFormParent = " + isFormParent); </script> </body> </html>
??? ????? ??? "???? ??" ??? ?????