我有我做了一個消息吧,但我不是最好的腳本,所以不知道如何處理本地存儲HTML5本地存儲的通知欄
這裏是我迄今爲止http://jsfiddle.net/nDtWM/11/
// It should be persistent until the user clears the cache
jQuery(document).ready(function($) {
// Checks to see if it is the first visit on browser open
if(sessionStorage.firstVisit != true) {
// Stores visit
sessionStorage.firstVisit = true;
$('#how-to').show();
} else {
$('#how-to').hide();
}
$("#close").click(function(){
$("#how-to").hide();
});
});
我相信我有它,所以它是持久性的,直到用戶清除緩存,但我不確定。此外,它不起作用,所以我不知道:P
這個問題似乎是脫離主題,因爲它屬於http://codereview.stackexchange.com/ – ceejayoz