當使用chrome 無痕模式時, 默認阻止第三方cookie
如果使用了localStorge或者cookie , 就會在js里報錯
報錯SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
這個問題只能在代碼層面做兼容處理 ,先不讓報錯
if(navigator.cookieEnabled&&typeof window.localStorage !== 'undefined') { }