xxb/module/im/js/debug.js
2023-10-23 15:51:36 +08:00

26 lines
505 B
JavaScript

$(document).ready(function()
{
if(v.showLog == 1)
{
setInterval('showLog()', 3000);
showLog();
}
$('#menu li').removeClass('active').find('a[href*=xuanxuan]').parent().addClass('active');
});
function showLog()
{
$.getJSON(createLink('im', 'showLog'), function(response)
{
if(response.result == 'fail')
{
$('#log').html(response.message);
}
else
{
$('#log').html(response.logs);
}
});
}