我在新浪 以及其他的一些网站中看到登入之后会把一些信息放在几乎所有的页面上 像下面这样:
<script type="text/javascript">
GUANGER = { 
staticVersion : "20121008018",
userId:"1171105",
userPhoto:photo,
nick:"漫步旅行",
path:"",
isBlack: "",
checkInTotalScore: "", 
checkInDays: "",
login : "",
level : "normal"
}
</script>或者新浪的:
<script type="text/javascript">
var $CONFIG = {};
$CONFIG['islogin'] = '1';
$CONFIG['setCover'] = 1;//ie6hack
$CONFIG['oid'] = '1696633142';
$CONFIG['onick'] = '围脖中旅行';
$CONFIG['allowConnect'] = 'false';
$CONFIG['uid'] = '1696633142';
$CONFIG['nick'] = '围脖中旅行';
$CONFIG['domain'] = 'wenzhenlin';
$CONFIG['water'] = 'wenzhenlin';
$CONFIG['sex'] = 'm';
$CONFIG['ogender'] = 'm';
$CONFIG['groupfeed'] = '0';
$CONFIG['afterupgrade'] = 'false';
$CONFIG['version'] = 'abd032d37c6f2fc2';
$CONFIG['bigpipe'] = 'true';
$CONFIG['timeDiff'] = (new Date() - 1350309952000);
$CONFIG['product'] = 'v4mblog';
$CONFIG['pageid'] = 'content_home';
$CONFIG['skin'] = 'diy';
$CONFIG['background'] = "65209136gw1dt8fkcaefjj"; 
$CONFIG['scheme'] = "diy006"; 
$CONFIG['colors_type'] = "1";
$CONFIG['lang'] = 'zh-cn';
$CONFIG['jsPath'] = 'http://js.t.sinajs.cn/t5/';
$CONFIG['cssPath'] = 'http://img.t.sinajs.cn/t5/';
$CONFIG['imgPath'] = 'http://img.t.sinajs.cn/t5/';
$CONFIG['servertime'] = 1350309952;
$CONFIG['any'] = "&wvr=5";
$CONFIG['$webim'] = 1;
$CONFIG['location'] = 'home';
$CONFIG['miyou'] = 1;
$CONFIG['pid'] = '10001';</script>这样做有什么具体的作用 是怎么讲这些信息放在页面上的