leafiy
5/18/2018 - 6:47 PM

add url params #js #url

none

function addURLParam(url,name,value){
    url +=(url.indexOf("?")==-1?"?":"&")
    url+= encodeURIComponet(name) + "=" + encodeURIComponent(vaule);
    return url;
}