常见问题解答中缺少的内容:这是哪个浏览器 [英] things missing from the FAQs: which browser is this

查看:72
本文介绍了常见问题解答中缺少的内容:这是哪个浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题如何检测用户具有哪个浏览器
的问题怎么可能?此常见问题解答中缺少:

http://www.faqts.com/knowledge_base/index.phtml/fid/125


仅在此处显示建议的旧信息链接

使用navigator:
http://developer.irt.org/script/43.htm

How is it possible that the question "How do I detect which browser
the user has" is missing from this FAQ:

http://www.faqts.com/knowledge_base/index.phtml/fid/125

and is only here on this with a link to old information that suggests
use of "navigator":
http://developer.irt.org/script/43.htm

推荐答案

劳伦斯说:

问题如何检测用户具有哪个浏览器的问题怎么可能?此常见问题解答中缺少:

http://www.faqts.com/knowledge_base/index.phtml/fid/125

仅在此处提供指向使用的旧信息的链接
navigator:
http://developer.irt。 org / script / 43.htm




因为尝试猜测哪个浏览器通常是个坏主意

用户有。那是很少有用的信息。不同的同一浏览器的
版本可能会有很大的不同,并且相同的

版本在不同的平台上可能会有不同的表现,或者与不同的用户偏好有不同的b
。即使能够可靠地报告浏览器名称,导航器属性也不可信任。


检测浏览器是否更好代码是

运行支持你感兴趣的任何特定功能

in。



Because it''s generally a bad idea to try to guess which browser
the user has. That''s rarely useful information. Different
versions of the same browser may be very different, and the same
version may behave differently on different platforms or with
different user preferences. The navigator attribute can''t be
trusted even to reliably report the browser name.

It''s better to detect whether or not the browser your code is
running in supports whatever specific features you''re interested
in.


在文章< da ************************** @ posting.google.com>,
lk ****** @ geocities.com 启发我们...
In article <da**************************@posting.google.com >,
lk******@geocities.com enlightened us with...
这个问题怎么可能如何检测用户具有的浏览器?此常见问题解答中缺少:

http://www.faqts.com/knowledge_base/index.phtml/fid/125
How is it possible that the question "How do I detect which browser
the user has" is missing from this FAQ:

http://www.faqts.com/knowledge_base/index.phtml/fid/125




使用专有IE浏览器检测IE以外的任何内容

条件代码必然会失败。

他们应该有那个问题,其中包含一个*不应该*

的所有原因这样做。


没有任何有经验的人会再进行浏览器检测。那是从只有IE和Netscape出现的日子里回来的


使用对象检测。


- -

-

~kaeli~

墨菲定律#2030:如果一开始你没有成功,就要消灭

您尝试的所有证据。
http:// www .ipwebdesign.net / wildAtHeart
http://www.ipwebdesign。 net / kaelisSpace



Browser detection for anything other than IE using the proprietary IE
conditional code is bound to fail horribly.
They should have that question there with all the reasons why one *shouldn''t*
do it.

No one with any experience does browser detection any more. That''s a
throwback from the days when only IE and Netscape were around.
Use object detection instead.

--
--
~kaeli~
Murphy''s Law #2030: If at first you don''t succeed, destroy
all evidence that you tried.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace


On Fri,2004年10月1日09:01:19 -0500,kaeli写道:
On Fri, 1 Oct 2004 09:01:19 -0500, kaeli wrote:
改为使用对象检测。




<测试最近获得的知识>

术语''对象检测''应该真的要改成

''特征检测'',比如''物体检测''没有

资格导致混淆在''特征检测''

和''对象推理''之间*(这是一件坏事,..mmkay? ;-)。

< /测试最近获得的知识>


*

< http://google.com /groups?q=object+inference&group=comp.lang.javascri pt>


-

Andrew Thompson
http://www.PhySci.org/codes/ Web& IT帮助
http://www.PhySci.org/ 开源软件套件
http://www.1point1C.org/ Science&技术
http://www.lensescapes.com/ 图像逃脱世俗的



<testing recently gained knowledge>
The term ''object detection'' should really be changed to
''feature detection'', as to say ''object detection'' without
qualification leads to confusion between ''feature detection''
and ''object inference''* ( which is a bad thing, ..mmkay? ;-).
</testing recently gained knowledge>

*
<http://google.com/groups?q=object+inference&group=comp.lang.javascri pt>

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


这篇关于常见问题解答中缺少的内容:这是哪个浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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