Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > asp技巧

asp计算str2在str1中出现的次数

来源:中文源码网    浏览:184 次    日期:2024-05-01 16:47:54
【下载文档:  asp计算str2在str1中出现的次数.txt 】


ASP计算str2在str1中出现的次数
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

相关内容