cookie

一个网站是 多种个cookie 组合起来用的

cookie 特性:同一个网站中 所有页面共享一套cookie;

                  数量大小有限

JS中的cookie

document.cookie;

测试代码:

document.cookie = "user=blue";

alert(document.cookie);

var oDate = Date();

日期对象中 月份是从1开始的,注意;

alert(oDate.getFullYear() + '-'+(oDate.getMouth() + 1)+'-' +oDate.getDate());

https://www.tongbiao.xyz/
原文地址:https://www.cnblogs.com/tongbiao/p/6604535.html