标签:mon cal listen play tor display 本地 element click
var timestamp = parseInt(Date.parse(new Date()));
var btn = document.getElementById("close");
btn.addEventListener("click", function(e){
document.getElementById(‘common_footer‘).style.display=‘none‘;
localStorage.clicktime = timestamp;
}, false);
if((timestamp - localStorage.clicktime) < 86400000){
document.getElementById(‘common_footer‘).style.display=‘none‘;
}
标签:mon cal listen play tor display 本地 element click
原文地址:http://www.cnblogs.com/ch-zaizai/p/7279890.html