作者:Genesis Gaming | 来源:互联网 | 2023-05-16 08:52
Well,itworks,itjustdoesntproduceanythingworthwhile:它起作用了,但没有产生任何有价值的东西:elemsdocument
Well, it works, it just doesn't produce anything worthwhile:
它起作用了,但没有产生任何有价值的东西:
elems = document.getElementById("itemsTable").getElementsByTagName("TR")
for j = 0 to ubound(elems) - 1
' stuff
next
Well, that won't work, apparently elems is an object, not an array like you'd get in that fancy Javascript. I'm stuck with Vbscript though.
这行不通,显然elems是一个对象,而不是像Javascript那样的数组。但是我被Vbscript困住了。
So what do I do to iterate all the rows in a table in Vbscript?
那么,我要如何遍历Vbscript中的表中的所有行呢?
Edit: Yes, it's Vbscript and it sucks. I don't have a choice here, so don't say "Use jQuery!!".
编辑:是的,是Vbscript,很烂。我在这里没有选择,所以不要说“使用jQuery!!”
3 个解决方案