Counter Error: ' + responseJSON.code + ' ' + responseJSON.error); }); } $(function() { $.get('https://app-router.leancloud.cn/2/route?appId=' + 'uLM2WFMDtpXvCYe9LInEc284') .done(function({ api_server }) { var Counter = function(method, url, data) { return $.ajax({ method: method, url: 'https://' + api_server + '/1.1' + url, headers: { 'X-LC-Id': 'uLM2WFMDtpXvCYe9LInEc284', 'X-LC-Key': 'efF52z8z4mcr5W5ELtJvIbQ2', 'Content-Type': 'application/json', }, data: data }); }; if ($('.post-title-link').length >= 1) { showTime(Counter); } }); });