大家看一下这个小函数的功能!!¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥
请高手给解释一个这个函数,万分感谢!
function cuted(types,num)
dim ctypes,cnum,ci,tt,tc,cc,cmod
cmod=3
ctypes=types
cnum=cint(num)
cuted=""
tc=0
cc=0
for ci=1 to len(ctypes)
if cnum<0 then
cuted=cuted&"..."
exit for
end if
tt=mid(ctypes,ci,1)
if int(asc(tt))>=0 then
cuted=cuted&tt
tc=tc+1
cc=cc+1
if tc=2 then tc=0
cnum=cnum-1
if cc>cmod then cnum=cnum-1
cc=0
else
cnum=cnum-1
if cnum<=0 then
cuted=cuted&"..."
exit for
end if
cuted=cuted&tt
end if
next
end function
-------------------------------------
出自乔客1.2/include/jk_class.asp