js实现如下 并将代码加入博客侧边栏就成了
<script> document.addEventListener("visibilitychange", function () { if (document.hidden) { document.title=">﹏<你终究还是走了"; } else { document.title="你在天就会亮( ̄??)"; setTimeout(function(){ document.title= "随手一只风的博客"; }, 2000); } }, false); </script>
原文:https://www.cnblogs.com/suishou/p/14754651.html