var getUrlParameter = function(name){ var locString = document.location.search; var reg = new RegExp("(\\?|\\&)" + name + "=([^\\&]*)(\\&?)", "i").exec(locString); return RegExp.$2; }
转载于:https://blog.51cto.com/raygaditer/1684256
var getUrlParameter = function(name){ var locString = document.location.search; var reg = new RegExp("(\\?|\\&)" + name + "=([^\\&]*)(\\&?)", "i").exec(locString); return RegExp.$2; }
转载于:https://blog.51cto.com/raygaditer/1684256