标题:帮忙看一下if(Len(strSearchStrings)) 的作用
只看楼主
风中的承诺
Rank: 1
等 级:新手上路
帖 子:331
专家分:0
注 册:2004-10-31
 问题点数:0 回复次数:3 
帮忙看一下if(Len(strSearchStrings)) 的作用
<% Response.buffer=true dim strUrlRedirTo,strSearchStrings strSearchStrings=Trim(Request.QueryString("SearchStrings")) if(Len(strSearchStrings)) then --->这一行有什么用啊? strSearchStrings=Server.UrlEncode("strSearchString") if Request.QueryString("goURL")="百度" then strUrlRedirTo="http://www.baidu.com/baidu?word="&strSearchStrings end if if Request.QueryString("goURL")="Yahoo" then strUrlRedirTo="http://cn.websearch.yahoo.com/search/web_cn?p="&strSearchStrings end if response.redirect strUrlRedirTo end if %>
搜索更多相关主题的帖子: Len 百度 baidu QueryString 
2005-03-03 21:50
BlueDreame
Rank: 1
等 级:新手上路
帖 子:545
专家分:2
注 册:2004-12-16
得分:0 
从表面上看,是指strSearchStrings长度不为0就执行。

2005-03-03 22:20
风中的承诺
Rank: 1
等 级:新手上路
帖 子:331
专家分:0
注 册:2004-10-31
得分:0 
不过如果去掉就不能执行了
是不是还有其它用处?

I love you not because of who you are, but because of who I am when I am with you!
2005-03-04 10:23
yt1386
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2004-8-16
得分:0 
是不是指strSearchStrings不为空的判定条件
2005-03-04 10:34



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-12794-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.782119 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved