Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
浏览器 Cookie:当我输入无效的登录 ID 时,我的 HTML 页面上出现未经授权的 cookie。我显示了 cookie 值,但是 cookie 似乎是一个持久的,即使在页面刷新时它也不会出现。我该怎么做呢?我什至尝试让它们过期。这没用。
document.cookie = 'mycookie=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';