getUrlParams: function () {
if (this.isEmpty(window.location.search)) {
return {
"": "无URL参数"
};
}
var q = window.location.search.substring(1).split("&");
var returnValue = {};
for (var i = 0; i < q.length; i++) {
var temp = q[i].split("=");
returnValue[temp[0]] = decodeURI(temp[1]);
}
return returnValue;
},
isEmpty: function (obj) {
if (obj == "undefined" || obj == null || obj == "") {
return true;
} else {
return false;
}
}