Class Index | File Index

Classes


Namespace BCL.UriHelper

统一资源标识符辅助类
Defined in: WebControls.Debug.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
BCL.UriHelper.addUrlParameter(url, name, value)
添加URL参数
<static>  
BCL.UriHelper.getUrlParameters(url)
获取URL参数
<static>  
BCL.UriHelper.removeUrlParameter(url, name)
删除URL参数
<static>  
BCL.UriHelper.urlDecode(url)
URL解码
<static>  
BCL.UriHelper.urlEncode(url)
URL编码
Namespace Detail
BCL.UriHelper
Method Detail
<static> {String} BCL.UriHelper.addUrlParameter(url, name, value)
添加URL参数
        var url = "http://bcl.beyondbit.com/Default.aspx";
            
        url = BCL.UriHelper.addUrlParameter(url, "id", "1");
Parameters:
{String} url
URL
{String} name
名称
{String} value
Returns:
{String}

<static> {Object} BCL.UriHelper.getUrlParameters(url)
获取URL参数
        var url = "http://bcl.beyondbit.com/Default.aspx?id=1";
        var params = BCL.UriHelper.getUrlParameters(url);
        var id = params["id"];
Parameters:
{String} url
URL
Returns:
{Object}

<static> {String} BCL.UriHelper.removeUrlParameter(url, name)
删除URL参数
        var url = "http://bcl.beyondbit.com/Default.aspx?id=1";
        var params = BCL.UriHelper.getUrlParameters(url);
        var id = params["id"];
        
        url = BCL.UriHelper.removeUrlParameter(url, "id");
        params = BCL.UriHelper.getUrlParameters(url);
        id = params["id"];
Parameters:
{String} url
URL
{String} name
名称
Returns:
{String}

<static> {String} BCL.UriHelper.urlDecode(url)
URL解码
Parameters:
{String} url
URL
Returns:
{String}

<static> {String} BCL.UriHelper.urlEncode(url)
URL编码
Parameters:
{String} url
URL
Returns:
{String}

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Dec 12 2011 15:08:39 GMT+0800 (CST)