当前位置:千优问>常见问答>if(navigator.userAgent.toLocaleLowerCase().indexOf("baidu") == -1){document.什么意思

if(navigator.userAgent.toLocaleLowerCase().indexOf("baidu") == -1){document.什么意思

2023-10-07 22:09:02 编辑:join 浏览量:615

if(navigator.userAgent.toLocaleLowerCase().indexOf("baidu") == -1){document.什么意思

if(navigator.userAgent.toLocaleLowerCase().indexOf(

意思是:如果访问人直接在浏览器中输入www.XXX.COM来打唤和历开你们网页的,那就无异样,没什么问题,正常显示你们网站的标题。如果是在百度中搜索你们网站的,并通过百度结果点棚戚击进你们网页和搜的话就会跳转到啥赌博时时彩之类的网站吧。

标签:navigator,userAgent,toLocaleLowerCase