getQueryString:function(name) {
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = decodeURI(decodeURI(window.location.search)).substr(1).match(reg);
if(r!=null)return unescape(r[2]); return null;
}
转载于:https://www.cnblogs.com/liw66/p/9962725.html