手记

Amazing blank in jQuery

         

<html>     <head>         <script type="text/javascript" src="jquery-1.6.2.js"></script>         <script type="text/javascript">             $(function()             {                 alert($('.test :hidden').length);   //read in sequence, first .test then :hidden                 alert($('.test:hidden').length);    //read simultaneously, .test && :hidden             });                  </script>     </head>     <body>               <div class="test">             <div >aaa</div>             <div >bbb</div>             <div >vvv</div>             <div class="test" >ddd</div>         </div>         <div >eee</div>         <div >fff</div>     </body> </html>
alert($('.test:hidden').length);

It is possible to read this from the end. the hidden and class name test element

0人推荐
随时随地看视频
慕课网APP