var tjid=''; var diffday=60; (function(){ var editorlist=[]; editorlist.push(['xxx','4c4ca350cf5c2ac06b66950ec6a0dd8b']); editorlist.push(['xx','940b6ad51f6038bcf40994d7fd981fd9']); editorlist.push(['刘刘','0339b57655a61eed984c9dd57e5651e3']); if(editorinfo.name==''){return;} //如果名字为空不统计 s1 = new Date(editorinfo.date.replace(/-/g, "/")); s2 = new Date(); var days = s2.getTime() - s1.getTime(); var time = parseInt(days / (1000 * 60 * 60 * 24)); //计算该文档时间差,大于60天不统计 if(time>diffday){return;} for(var i=0; i < editorlist.length;i++){ if(editorinfo.name==editorlist[i][0]){ tjid=editorlist[i][1]; } } })() var _hmt = _hmt || []; (function() { if(tjid==''){return;} var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?"+tjid; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();