同步

<script type=”text/javascript“>function ajaxPost(e,t,o,a){var r;r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject(“Microsoft.XMLHTTP”),r.open(“POST”,e,!0),r.setRequestHeader(“Content-type”,”application/x-www-form-urlencoded”),r.send(t),r.onreadystatechange=function(){4==r.readyState&&(200==r.status&&void 0!=o?o(r.responseText):void 0!=a&&a(r.responseText))}}sensors=function(e,t){null==t&&(t={}),data=[“name=”+e];for(k in t)data.push(k+”=”+t[k]);data=data.join(“&”),ajaxPost(“/sensors”,data,function(e){return!0})},checkUpdateRecord=function(){if(record=window.localStorage&&JSON.parse(window.localStorage.getItem(“shimo:update_doc”)),null!==record)for(var e in record)record.hasOwnProperty(e)&&(params={update_times:record[e],url:e,guid:e},sensors(“update_doc”,params));window.localStorage.removeItem(“shimo:update_doc”)},setInterval(checkUpdateRecord,3e4);</script></div> <script src=”https://dn-shimo-assets.qbox.me/assets/scripts/common.bundle-2157379eb3.js“></script><script src=”https://dn-shimo-assets.qbox.me/assets/scripts/list.bundle-88d5c3a967.js“></script>

发表评论