JoinChar 向地址中加入 ? 或 & 用于实现传参

''************************************************** ''函数名:JoinChar ''作用:向地址中加入?或数:strUrl----网址 ''返回值:加了?或的网址 ''************************************************** functionJoinChar(strUrl) ifstrUrl=''then JoinChar='' exitfunction end

作者: 来源: 时间: 17-11-23 15:39:17

''**************************************************
''函数名:JoinChar
''作  用:向地址中加入 ? 或 &
''参  数:strUrl  ----网址
''返回值:加了 ? 或 & 的网址
''**************************************************
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
11
22
33
隐藏区块

会员注册

本功能为预留功能,暂不支持注册 ^_^

Login

社交帐号登陆

使用以下任意帐号可登陆本站

Close section
Close

联系我们

关于5UCMS 您有任何需求 均可以留言给我们