拼接url

/***************************
     * 拼接url字符串
     */
    function addUrl(arr,url) {
        $.each(arr,function (i,obj) {
            var key = obj.attr('name'),
                val = obj.val();
            url+=  key+'='+val+'&'
        });
        //url=url.substring(0,url.length-1);
        return url;
    }

随机浏览