展会信息港展会大全

asp 获取地址栏参数代码 android软件开发教程
来源:互联网   发布日期:2016-03-01 11:04:30   浏览:1572次  

导读:asp 获取地址栏参数代码 ============================================函数名:JoinChar作 用:向地址中加入 ? 或 #160; 数:st...

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

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
推荐内容
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港