比如说div里面有多个
,除了遍历,还有什么方法获得div里的p的数量
Elements pElements = div.getElementByTag("p");p.Elements.size() 就是div所代表的区域内所有的p标签的数量了