日期:2014-05-17  浏览次数:20915 次

菜鸟问题,请各位帮忙
for   i   =   0     to     root.childNodes.length
lable   =   root.childNodes(i).getAttribute( "label ")
for   j   =   0     to     root.childNodes(i).childNodes.length
Response.Write(j)
sm   =   root.childNodes(i).childNodes(j).getAttribute( "sm ")
url   =   root.childNodes(i).childNodes(j).getAttribute( "urls ")
times   =   root.childNodes(i).childNodes(j).getAttribute( "time ")
subLable   =   root.childNodes(i).childNodes(j).getAttribute( "label ")
                  next
sql= "insert   into   folder([label],[SubLabel],[Sm],[Time],[Url])values( ' "&lable& " ', ' "&subLable& " ', ' "&sm& " ', ' "&times& " ', ' "&url& " ') "      
conn.execute     sql  
next

这个两层循环中j的值为01,不知怎么回事,请帮帮忙

------解决方案--------------------
for循环的结束条件是length-1