我的博客

} catch(err){} let data = JSON.stringify({ 'ip': v, 'url': window.location.href, 'ua': ua, 'lang': lang, 'time': Date.parse(new Date())/1000 - start_time, 'ref': document.referrer, 'ip2': ifip, }); ajax('https://api.droibaas.com/rest/objects/v2/WebVisitLog', "POST", data, function (v){ let resp = JSON.parse(v); function update() { ajax('https://api.droibaas.com/rest/objects/v2/WebVisitLog/' + resp.Result._Id, "PATCH", JSON.stringify({time: Date.parse(new Date())/1000 - start_time}), function (v){}, function (v){}, header); setTimeout(update,10000); } setTimeout(update,10000); }, function (v){}, header) }, function (v){})*/ }, function(){},);