手机
当前位置:查字典教程网 >编程开发 >ASP教程 >ASP计算str2在str1中出现的次数
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中利用execute实现动态包含文件的方法

ASP中的ArrayList类

一个ASP中的数组

asp中向文本框输出数据原样式的函数

ASP中常用的变量命名规则

ASP 中Split 函数的实例

读取目录下的文件得到一个数组

显示在线人数

在asp中通过vbs类实现rsa加密与解密的代码

ASP常用函数:Trace()

精品推荐
分类导航