if (typeof localStorage === 'object') { try { localStorage.setItem('localStorage', 1); localStorage.removeItem('localStorage'); } catch (e) { Storage.prototype._setItem = Storage.prototype.setItem; Storage.prototype.setItem = function() {}; alert('您处于无痕浏览,无法为您保存'); } }
IOS下localstorage不起作用提示
最新推荐文章于 2021-06-16 10:30:01 发布