<%
str1="hello,spell,i,love,you"
aa= split(str1,",")'这里已经生成了一个数组aa,aa的内容是从str1中以‘,’为分格出来的!
for i=0 to Ubound(aa)'开始去的各个ID,i 是下标
response.write(aa(i)&" ")
next
%>
str1="hello,spell,i,love,you"
aa= split(str1,",")'这里已经生成了一个数组aa,aa的内容是从str1中以‘,’为分格出来的!
for i=0 to Ubound(aa)'开始去的各个ID,i 是下标
response.write(aa(i)&" ")
next
%>
本文通过一个VBScript示例展示了如何使用逗号作为分隔符来分割字符串,并遍历生成的数组。此过程对于理解基本的字符串操作及数组处理非常有用。

1747

被折叠的 条评论
为什么被折叠?



