Element.getElementsByTagName(String tagName)
Document.getElementsByTagName(String tagName)
这两个方法返回一个NodeList对象,如果没有找到名为 tagName 的元素,那么:NodeList != null && NodeList.getLength() == 0 ;
版权声明:本文为dai_zhenliang原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。