假设有个文档根元素标签名为bookstore
使用下面两种方法取节点列表,为什么第一种能得到节点列表数据,第二种不行呢?x=xmlDoc.documentElement.childNodes;//对x=xmlDoc.getElementsByTagName("bookstore").childNodes;//错