debug.js 503 B

12345678910111213141516171819202122232425
  1. $(document).ready(function()
  2. {
  3. if(showLog == 1)
  4. {
  5. setInterval('showLog()', 3000);
  6. showLog();
  7. }
  8. $('#menu li').removeClass('active').find('a[href*=xuanxuan]').parent().addClass('active');
  9. });
  10. function showLog()
  11. {
  12. $.getJSON(createLink('im', 'showLog'), function(response)
  13. {
  14. if(response.result == 'fail')
  15. {
  16. $('#log').html(response.message);
  17. }
  18. else
  19. {
  20. $('#log').html(response.logs);
  21. }
  22. });
  23. }