Java与Python安全转码链接

Java     继续阅读
BirdZhang's avatar
BirdZhang 8月 21, 2017
console.log('Failed to save Visitor num, with error message: ' + error.message); } }); } else { var newcounter = new Counter(); newcounter.set('title', title); newcounter.set('url', url); newcounter.set('time', 1); newcounter.save(null, { success: function(newcounter) { console.log('newcounter.get(\'time\')='+newcounter.get('time')); var content = newcounter.get('time') + ' ' + $(document.getElementById(url)).text(); $(document.getElementById(url)).text(content); }, error: function(newcounter, error) { console.log('Failed to create'); } }); } }, error: function(error) { console.log('Error:' + error.code + ' ' + error.message); } }); } $(function() { var Counter = AV.Object.extend('Counter'); if ($('.leancloud-views_num').length === 1) { addCount(Counter); } else if ($('.post-title-link').length > 1) { showTime(Counter); } });