我正在尝试使用JavaScript以编程方式检索第三方Cookie的到期日期。虽然我可以在浏览器的DevTools中查看到期时间(参见屏幕截图https://i.stack.imgur.com/BW072.png),但我无法弄清楚如何通过代码获取此信息。
我尝试使用“document.cookie”,但它只返回第三方cookie的值,而不是到期日期。有没有办法使用JavaScript获取到期日期?
我将非常感谢任何见解或代码片段,可以帮助我实现这一点。提前感谢!
我正在尝试使用JavaScript以编程方式检索第三方Cookie的到期日期。虽然我可以在浏览器的DevTools中查看到期时间(参见屏幕截图https://i.stack.imgur.com/BW072.png),但我无法弄清楚如何通过代码获取此信息。
我尝试使用“document.cookie”,但它只返回第三方cookie的值,而不是到期日期。有没有办法使用JavaScript获取到期日期?
我将非常感谢任何见解或代码片段,可以帮助我实现这一点。提前感谢!
1条答案
按热度按时间gcxthw6b1#
字符串