function GetRequest(urlStr) {
if (typeof urlStr == "undefined") {
var url = decodeURI(location.search);
} else {
var url = "?" + urlStr.split("?")[1];
}
var theRequest = new Object();
if (url.indexOf("?") != -1) {
var str = url.substr(1);
var strs = str.split("&");
for (var i = 0; i < strs.length; i++) {
theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]);
}
}
return theRequest;
}
var parms_1 = GetRequest("https://detail.tmall.com/item.htm?id=638005051622&rn=75d4c727a775b386c6e5b47414d6153c&abbucket=9");
console.log(parms_1['id']);
console