欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP計(jì)算str2在str1中出現(xiàn)的次數(shù)

 更新時(shí)間:2008年05月15日 23:29:59   作者:  
可以方便計(jì)算一個(gè)字符串在另一個(gè)字符串出現(xiàn)的次數(shù)
function CountStr(str1,str2)
       dim tmp,i,j
       if str1="" or isnull(str1) then
                 j=0
       elseif str2="" or isnull(str2) then
                 j=1
       else
                tmp=split(str1,str2)
                j=0
               for i=0 to ubound(tmp)
                          if tmp(i)<>"" then j=j+1
               next
        end if
        countstr=j
end function

相關(guān)文章

最新評(píng)論