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?
提前致谢!
为了获取您所在的域/路径的 cookie,JavaScript提供了document.cookie,它返回一个字符串,它是一个以分号分隔;的 cookie 列表。
document.cookie
;