作者:加肥的猫miao_115 | 来源:互联网 | 2023-05-19 11:58
HiIhavewrittenaprograminVBScript,nowIwanttoreplaceForEachloopwithaForloop.你好,我用V
Hi I have written a program in Vbscript, now I want to replace For Each
loop with a For
loop.
你好,我用Vbscript写了一个程序,现在我想用For循环替换每个循环。
For Each node In objMSXML.selectNodes(sXPath)
Set li = document.createElement("li")
li.innerText = i & " " & node.text
ul.appendChild li
i = i +1
Next
I have not been able to figure it out as I also need to know the number of nodes returned from Xpath.
我还没算出来,因为我还需要知道Xpath返回的节点数。
2 个解决方案