简体   繁体   English

以下哪项决定了浏览器是否启用了 cookie?

[英]Which of the following determines whether cookies are enabled in a browser or not?

Which of the following determines whether cookies are enabled in a browser or not?以下哪项决定了浏览器是否启用了 cookie?

Option 1选项1

(navigator.Cookie)? true: false 

Option 2选项 2

(application.cookieEnabled)? true: false, 

Option 3选项 3

(navigator.CookieEnabled)? true: false,    

Option 4选项 4

(application.cookie)? true: false

使用navigator.cookieEnabled

 console.log(navigator.cookieEnabled);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 检测浏览器中是否启用了cookie - Detect if cookies are enabled in the browser 如何知道在任何浏览器中是否启用cookie? - How to know cookies are enabled or not in any browser? 检查是否启用了全屏,跨浏览器 - Check Whether Fullscreen is Enabled, Cross Browser 如何测试浏览器是否接受JavaScript的Cookie? - How to test whether a browser accepts cookies with JavaScript? 测试 function 以检查 Qunit 是否启用了 cookies - Testing function which checks if cookies are enabled with Qunit Cookies在我的网站上不起作用,已在我的浏览器中启用 - Cookies aren't working in my website, they are enabled in my browser 启用 CORS 的浏览器不发送 cookie 跨域跨域 - Browser not sending cookies cross-origin cross domain with CORS enabled Javascript:如何检查浏览器中是否启用了特定的TLS版本? - Javascript: How to check whether particular TLS version is enabled in browser or not? 检查客户端浏览器中是否启用了javascript的最佳方法是什么? - What is the best way to check whether javascript is enabled in client browser? 如何使用Java代码检查客户端浏览器中是否启用了JavaScript - How to check whether JavaScript is enabled in client browser using Java code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM