safari检测无痕模式


try {
localStorage.test = 2;// try to use localStorage
} catch (e) {//there was an error so...
alert('You are in Privacy Mode\nPlease deactivate Privacy Mode and then reload the page.');
}
posted @ 2014-11-18 13:46  Zodiac小龙  阅读(510)  评论(0编辑  收藏  举报