BH3GEG的电台日志 ︱ BH3GEG の Logbook

发表评论

电子邮件地址不会被公开。必填项已用 * 标注

$(function(){ function page_views() { if(!window.localStorage) { console.info('浏览器不支持localStorage'); }else{ var post_id = 607; var views = localStorage.getItem("view_list"); if(views===null){ localStorage.setItem("view_list",post_id); $.post("/views.php?time="+new Date().getTime(),{post_id:post_id}); return true; }else{ var item = views.split("|"); var bool = $.inArray(post_id+'',item); if(bool===-1){ $.post("/views.php?time="+new Date().getTime(),{post_id:post_id}); localStorage.setItem("view_list",views+"|"+post_id); return true; } return false; } } } page_views(); });