ASP中怎样判断一个数是否在这一个数组中

2025-02-24 21:35:13
推荐回答(1个)
回答1:

function istrue(arr,str)
for i=0 to ubound(arr)
if str=arr(i) then
istrue="数组第"&i&"条记录为"&str
else
istrue="数组不包含"&str
end if
next
end functionstr