教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp  >  正文 asp 获取地址栏参数代码

asp 获取地址栏参数代码

发布时间:2016-10-03   编辑:jiaochengji.com
教程集为您提供asp 获取地址栏参数代码 等资源,欢迎您收藏本站,我们将为您提供最新的asp 获取地址栏参数代码 资源
asp 获取地址栏参数代码


'***********************************************
'函数名:JoinChar
'作  用:向地址中加入 ? 或 &
'参  数:strUrl  ----网址
'返回值:加了 ? 或 & 的网址
'pos=InStr(1,"abcdefg","cd")
'则pos会返回3表示查找到并且位置为第三个字符开始。
'这就是“查找”的实现,而“查找下一个”功能的
'实现就是把当前位置作为起始位置继续查找。
'***********************************************
function JoinChar(strUrl)
 if strUrl="" then
  JoinChar=""
  exit function
 end if
 if InStr(strUrl,"?")<len(strUrl) then
  if InStr(strUrl,"?")>1 then
   if InStr(strUrl,"&")<len(strUrl) then
    JoinChar=strUrl & "&"
   else
    JoinChar=strUrl
   end if
  else
   JoinChar=strUrl & "?"
  end if
 else
  JoinChar=strUrl
 end if
end function

您可能感兴趣的文章:
asp 获取地址栏参数代码
php伪静态如何获取地址栏url
asp入门教程:ASP Request 简单介绍
js获取网页地址栏中参数的代码一例
asp入门:Request.QueryString实例教程
javascript获取地址栏参数的二种方法
ASP设计常见问题及解答精要(2)
php 获取网站地址的函数代码
ASP 获取腾讯IP地址的接口程序代码
javascript 获取url参数的小例子

[关闭]
~ ~