var getUrlParameter = function(name){ var locString = document.location.search; var reg = new RegExp("(\\?|\\&)" + name + "=([^\\&]*)(\\&?)", "i").exec(locString); return RegExp.$2; }
时间: 2024-10-25 11:24:02
var getUrlParameter = function(name){ var locString = document.location.search; var reg = new RegExp("(\\?|\\&)" + name + "=([^\\&]*)(\\&?)", "i").exec(locString); return RegExp.$2; }