ASP计算str2在str1中出现的次数_ASP教程-查字典教程网
ASP计算str2在str1中出现的次数
ASP计算str2在str1中出现的次数
发布时间:2016-12-29 来源:查字典编辑
摘要: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教程学习
    热门ASP教程学习
    编程开发子分类