[英]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.