简体   繁体   中英

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?

Option 1

(navigator.Cookie)? true: false 

Option 2

(application.cookieEnabled)? true: false, 

Option 3

(navigator.CookieEnabled)? true: false,    

Option 4

(application.cookie)? true: false

使用navigator.cookieEnabled

 console.log(navigator.cookieEnabled);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM