在header.php中的<head></head>之间添加下列代码即可
将其中的document.title的文字改成自己想展示的即可
<script>
document.addEventListener('visibilitychange', function () {
if (document.visibilityState == 'hidden') {
normal_title = document.title;
document.title = '404了,快看!';
} else document.title = normal_title;
});
</script>
Comments NOTHING