手机
当前位置:查字典教程网 >编程开发 >ASP教程 >JoinChar 向地址中加入 ? 或 & 用于实现传参
JoinChar 向地址中加入 ? 或 & 用于实现传参
摘要:'**************************************************'函数名:JoinChar'作用:向地...

'**************************************************

'函数名:JoinChar

'作用:向地址中加入?或&

'参数:strUrl----网址

'返回值:加了?或&的网址

'**************************************************

functionJoinChar(strUrl)

ifstrUrl=""then

JoinChar=""

exitfunction

endif

ifInStr(strUrl,"?")<len(strUrl)then

ifInStr(strUrl,"?")>1then

ifInStr(strUrl,"&")<len(strUrl)then

JoinChar=strUrl&"&"

Else

JoinChar=strUrl

endif

Else

JoinChar=strUrl&"?"

endif

Else

JoinChar=strUrl

endif

endfunction

【JoinChar 向地址中加入 ? 或 & 用于实现传参】相关文章:

ASP数据岛操作类

asp 获取地址栏参数代码

javascript asp教程第三课 new String() 构造器

ASPJPEG学习手记

关于ASP生成伪参数技巧

asp中COM组件中如何连接数据库的代码

ASP 类 Class入门 推荐

utf-8编码转换成gb2312

ASP错误处理

DreamWeaver编写ASP时如何修改代码?

精品推荐
分类导航