code + " " + responseJSON.error); }); } $(function() { $.get('https://app-router.leancloud.cn/2/route?appId=' + "r4GA5m4P4SXbOnic6b03CRyO-gzGzoHsz") .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': "r4GA5m4P4SXbOnic6b03CRyO-gzGzoHsz", 'X-LC-Key': "w9colOCMhD54kJr6lybpWuoy", 'Content-Type': 'application/json', }, data: data, }); }; if ($('.post-title-link').length >= 1) { showTime(Counter); } }) });