Home / cs-notes / Network / Protocol / HTTP / 应用 / Cookie / JavaScript
- document.cookie
- 创建新 Cookie
- 也可以访问非 HttpOnly 标记的 Cookie
document.cookie = "yummy_cookie=choco";
document.cookie = "tasty_cookie=strawberry";
console.log(document.cookie);
Home / cs-notes / Network / Protocol / HTTP / 应用 / Cookie / JavaScript
document.cookie = "yummy_cookie=choco";
document.cookie = "tasty_cookie=strawberry";
console.log(document.cookie);