首页 > 代码库 > querystring

querystring

function getParameterByName(name) {    var match = RegExp(‘[?&]‘ + name + ‘=([^&]*)‘).exec(window.location.search);    return match && decodeURIComponent(match[1].replace(/\+/g, ‘ ‘));}

querystring