ASP计算str2在str1中出现的次数
摘要:functionCountStr(str1,str2)dimtmp,i,jifstr1=""orisnull(str1)thenj=0els...
functionCountStr(str1,str2)
dimtmp,i,j
ifstr1=""orisnull(str1)then
j=0
elseifstr2=""orisnull(str2)then
j=1
else
tmp=split(str1,str2)
j=0
fori=0toubound(tmp)
iftmp(i)<>""thenj=j+1
next
endif
countstr=j
endfunction
【ASP计算str2在str1中出现的次数】相关文章:
★ 显示在线人数
上一篇:
ASP字符串转换为整形、双精度型、布尔
下一篇:
asp采集抓取网上房产信息的代码