var
pageFresh
=
getCookie(
"pagefresh");
if (
pageFresh
!=
"ok") {
document.
cookie
=
'pagefresh=ok';
location.
reload(
true);
// 强制获取cookie从服务器取数据
}
//方法刷新
function
getCookie(
name) {
var
arr
=
document.
cookie.
match(
new
RegExp(
"(^| )"
+
name
+
"=([^;]*)(;|$)"));
if (
arr
!=
null)
return
unescape(
arr[
2]);
return
null;
}