📄 functions.js
字号:
var clear_cache_timeout_id;
function clearCache(e)
{
window.clearTimeout(clear_cache_timeout_id);
$(e).text("Clearing...");
var url = _ADMIN_DIR + "tools/clearcache";
var par = { _rn: Math.random() };
$.post(url, par, function(clear_count) {
var clear_count = parseInt(clear_count);
if(clear_count > 0)
{
$(e).text(clear_count + " file(s) has been deleted").css({color: 'green'});
}
else
{
$(e).text("Has been deleted before").css({color: 'orange'});
}
clear_cache_timeout_id = window.setTimeout(function() {
$(e).text("Clear Cache").css({color: 'gray'});
}, 2000);
});
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -