未获得确切的浏览器名称 [英] Not getting exact browser name

查看:106
本文介绍了未获得确切的浏览器名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,

我无法从mac的某些浏览器中获取确切的浏览器名称。我得到的浏览器名称如下所示。

 [FBAN / MessengerForiOS; FBAV / 147.0.0.50.87; FBBV / 84235609; FBDV / iPhone8,2; FBMD / iPhone; FBSN / iOS; FBSV / 11.2.1; FBSS / 3; FBCR / T-Mobile; FBID /电话; F 



任何人都可以帮助我如何获得确切的浏览器名称?

提前致谢。



我尝试了什么:



我尝试使用以下代码获取浏览器名称

var Browsername = navigator.appCodeName;

var Browsername = navigator.appName;

当我使用此代码时,浏览器名称返回如上所示。

解决方案

检查此链接: JavaScript导航器 [ ^ ]



它将向您展示如何通过JavaScript获取所有可用信息,还将向您展示如何获取tworthy,信息是...

例如'Netscape'是IE11,Chorme和Firefox的应用程序名称......

或'Mozilla'是应用程序代码名称对于IE,Chrome,Firefox ......



所以没有得到浏览器名称不是你的错,问题是为什么你首先找到它? / BLOCKQUOTE>

Hi Experts,
I am not able to get exact browser name from some browsers in mac. I am getting browser name like below.
"

[FBAN/MessengerForiOS;FBAV/147.0.0.50.87;FBBV/84235609;FBDV/iPhone8,2;FBMD/iPhone;FBSN/iOS;FBSV/11.2.1;FBSS/3;FBCR/T-Mobile;FBID/phone;F

"
Can any one please help me how to get the exact browser name?
Thanks in advance.

What I have tried:

I tried with below code for getting browser name
var Browsername = navigator.appCodeName;
var Browsername = navigator.appName;
When i used this code the browser name returns like above.

解决方案

Check this link: JavaScript Window Navigator[^]

It will show you how to get all the information available to you via JavaScript and also will show you how untrustworthy that info is...
For instance 'Netscape' is the application name fro IE11, Chorme and Firefox...
Or 'Mozilla' is the application code name for IE, Chrome, Firefox...

So not getting the browser name is not your fault, the question is why in the first place you looked for it?


这篇关于未获得确切的浏览器名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆