人人矿场-人人矿场怎么-人人靠谱吗-人人矿场如何

人人矿场-人人矿场怎么-人人靠谱吗-人人矿场如何

$(function(){ function page_views() { if(!window.localStorage) { console.info('浏览器不支持localStorage'); }else{ var post_id = 47020; 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(); });