/**
* 工具类
*/
var Utils = {
/**
* 获得查询参数
*/
getQueryString: function(name) {
var search = location.search;
if(!search) {
return null;
}
var reg = new RegExp('(^|&)'+ name +'=([^&]*)(&|$)');
var matcher = search.substr(1).match(reg);
if(matcher==null) {
return null;
}
return unescape(matcher[2]);
}
};
var activityId = Utils.getQueryString('activityId');