<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 = $(".scroller"). ().size(); <br>alert(totalPanels) 結果為2 <br> </div> <br>累積