var result = xmldom.evaluate('employee/name',xmldom.documentElement,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if(result !==null){var element = result.iterateNext(); //iterateNext()的具體作用是什么,書上講的不太明白。while(element){alert(element.tagName);node= result.iterateNext(): //為什么要重復(fù)一次,}}
在學(xué)到XPath遇到的問題
瀟湘沐
2018-08-05 10:09:42