html5/css教程

javascript教程

asp教程

php教程

jsp教程

C#/.NET教程

Python教程

网络营销

建站经验

点击排行

ASP去除数组重复项函数

来源:中文源码网    浏览:507 次    日期:2024-04-18 12:38:35
'原数组
u_id="0,1,2,3,4,5"
'去除不显示的内容
a_id="1,2,3"
if trim(u_id)<>"" then
dim myarray_cj,i_cj
myarray_cj=trim(u_id)

myarray_cj=split(myarray_cj,",")

'myarray = array(myarray)
for i_cj = 0 to ubound(myarray_cj) 
b=0
a=split(a_id,",")
for ii=0 to ubound(a)
if trim(myarray_cj(i_cj))=a(ii) then
b=1
end if
next
if not b=1 then
response.write"
"

response.write(trim(myarray_cj(i_cj)))
end if


next
end if

精彩推荐