代码:<%
Html = "http://count.abc.com/click.asp内容8888http://count.abc.com/click.asp"
parts = split(Html, "count")
parts1 = split(parts(1), "click")
parts1l = split(parts1(1), ".asp")
%>
<%=parts(2)%>'----------------我想用parts(2)来判断是否有第二个"count"存在,代码要怎么写.哪位高手来帮忙下.if parts(2)没有内容"count" then执行内容一
elseif parts(2)有内容"count" then 执行内容二end if ------------------------------------------正确的写法是什么呢...........
Html = "http://count.abc.com/click.asp内容8888http://count.abc.com/click.asp"
parts = split(Html, "count")
parts1 = split(parts(1), "click")
parts1l = split(parts1(1), ".asp")
%>
<%=parts(2)%>'----------------我想用parts(2)来判断是否有第二个"count"存在,代码要怎么写.哪位高手来帮忙下.if parts(2)没有内容"count" then执行内容一
elseif parts(2)有内容"count" then 执行内容二end if ------------------------------------------正确的写法是什么呢...........
解决方案 »
- jQuery EasyUI的tabs新建选项卡的onAdd事件在哪里触发?
- 关于web的桌面提醒程序
- js能不能实现这样的效果
- 请高人帮忙看下这段JS为何不会输入出表格。。
- javascript 问题!! 急《在线等》
- 超级难题:Table表格自动填充排版的问题(曾经看到微软的一个效果)
- js文件调用问题(忘了)
- 谁能给个写简单检查表单的例子啊(help)
- 如何对一个“file”赋值呢?
- 请问str="weijsh;23;安远;男" 用javascript用alert()分别把weijsh,23,安远,男弹出窗口?中间是以";"隔开的,急谢!!
- 关于电信的JSP与SQL Server 数据库的连接代码
- cloudgamer前辈给的代码!很好的代码!但是我不会修改!希望有前辈能帮帮我..谢谢!
instr($a,$b)<>0表示,$a中包含$b
var temp = test.split(',');
//此时temp[0]:3 temp[1]:5 temp[2]:"a"
也无法判断是否存在
Html = "http://count.abc.com/click.asp内容8888http://count.abc.com/click.asp"
'Html = "http://count.abc.com/click.asp内容8888http://coun.abc.com/click.asp"
parts = split(Html, "count")
%><%="parts长=" & UBound(parts) & "<br>"%><%
'show parts -- start
dim i
for i=0 to UBound(parts)
%>
<%="parts(i)" & parts(i) &"<br>"%>
<%
next
%>
<%="<hr>"%>
<%
'show parts -- end
%><%if UBound(parts)>=2 then %>
<%="parts(2)有内容""count"""%>
<%else%>
<%="无parts(2)=无第二个""count"""%>
<%end if%>
--IIS5
<%="parts长=" & UBound(parts) & "<br>"%>
为:
<%="parts长=" & UBound(parts)+1 & "<br>"%>