JavaScript Utils
function getUrlVars(search) {
var vars = {};
var parts = search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) {
vars[key] = value;
});
return vars;
}
var vars = {};
var parts = search.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) {
vars[key] = value;
});
return vars;
}
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home