//在需要刷新的页面调用这个方法
Sail.Utils.set_param('t', new Date().getTime());
// 刷新页面,获取url参数
Utils.set_param = function(param,value){ var query = location.search.substring(1); var p = new RegExp("(^|&"+param+")=[^&]*"); if(p.test(query)){ query = query.replace(p,"$1="+value); location.search = '?'+query; }else{ if(query == ''){ location.search = '?'+param+'='+value; }else{ location.search = '?'+query+'&'+param+'='+value; } } }