Cookie基础与应用

cookie就是页面用来保存信息的!

var oDate=new Date();    //获取当前的时间
oDate.setDate(oDate.getDate()+80000);  //算出80000天之后的时间
alert(oDate.getFullYear()+'-'+(oDate.getMonth()+1)+'-'+oDate.getDate());


你可能感兴趣的:(Cookie基础与应用)