pauloabmiranda
2/24/2014 - 10:45 AM

Get Query Params as Object

Get Query Params as Object

jQuery.extend({
  getQueryParameters : function(str) {
	  return (str || document.location.search).replace(/(^\?)/,'').split("&").map(function(n){return n = n.split("="),this[n[0]] = n[1],this}.bind({}))[0];
  }
});