cookie的path

来源:互联网 发布:淘宝系会员和积分制度 编辑:程序博客网 时间:2024/05/17 09:31
document.cookie = name + "=a;path=/;expires=" + date.toGMTString();
cookie默认只有当前页面可访问 为了整个网站可操作 应设置path=/;
0 0