var userAgent = navigator.userAgent.toLocaleLowerCase(); var searchEngines = ["spider", "bot"]; var isSearchEngine = searchEngines.some(se => userAgent.indexOf(se) !== -1); if (!isSearchEngine) { document.title = "鍟嗗煄绠$悊"; }