标签:itil let bsp code time fun 页面 event timeout
var OriginTitile = document.title, titleTime;
document.addEventListener(‘visibilitychange‘, function() {
if (document.hidden) {
document.title = ‘(┬_┬)‘;
clearTimeout(titleTime);
} else {
document.title = ‘kazaff‘;
titleTime = setTimeout(function() {
document.title = OriginTitile;
},2000);
}
});
标签:itil let bsp code time fun 页面 event timeout
原文地址:https://www.cnblogs.com/fqh123/p/10986737.html