继续浏览精彩内容
慕课网APP
程序员的梦工厂
打开
继续
感谢您的支持,我会继续努力的
赞赏金额会直接到老师账户
将二维码发送给自己后长按识别
微信支付
支付宝支付

Amazing blank in jQuery

Qyou
关注TA
已关注
手记 255
粉丝 52
获赞 361

         

<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 style="display:none">aaa</div>             <div style="display:none">bbb</div>             <div style="display:none">vvv</div>             <div class="test" style="display:none">ddd</div>         </div>         <div style="display:none">eee</div>         <div style="display:none">fff</div>     </body> </html>
alert($('.test:hidden').length);

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

打开App,阅读手记
0人推荐
发表评论
随时随地看视频慕课网APP