我有我做了一个消息吧,但我不是最好的脚本,所以不知道如何处理本地存储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