<img src="http://files.jb51.net/file_images/article/201403/20140311155649.jpeg?2014211155723" alt="js 针对html DOM元素操作等经验累积_javascript技巧" > <div class="codetitle"> <span><a style="CURSOR: pointer" data="61619" class="copybut" id="copybut61619" onclick="doCopy('code61619')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code61619"> <br>var totalPanels = $(".scrollContainer").children().size(); <br>alert(totalPanels) 结果为2 <br> </div> <br>累积