我们必须支持多少个浏览器? [英] How many browsers must we support?

查看:68
本文介绍了我们必须支持多少个浏览器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如主题所说

我们必须支持多少浏览器?

究竟有多少浏览器?


当我在Firefox和IE6中运行这个JavaScript时:


函数init(){

if(document.getElementById)

alert (W3C DOM支持);

else if(document.all)

alert(" MSIE 4 DOM Supported");

否则(document.layers)

alert(NN 4 DOM支持);

else

alert(" This is is一个非常古老的浏览器);

}


IE6和Firefox报告支持W3C DOM

这是案例..当然我们可以通过编码来支付95%的市场价格

W3C DOM

我想知道Opera是否支持W3C DOM?

感谢您对此的想法

cw

Hi, as the subject says
How many browsers must we support?
How many are there exactly?

When I run this JavaScript in Firefox and IE6:

function init(){
if(document.getElementById)
alert("W3C DOM Supported");
else if(document.all)
alert("MSIE 4 DOM Supported");
else if(document.layers)
alert("NN 4 DOM Supported");
else
alert("This is a really old browser");
}

Both IE6 and Firefox report "W3C DOM Supported"
This being the case .. surely we can cover 95% of the market by coding for
the W3C DOM
I wonder if Opera supports the W3C DOM?

thanks for your thoughts on this
cw

推荐答案

On Mon,2005年2月21日02:24 :31 -0000,code_wrong < ta*@tac.ouch.co.uk>

写道:
On Mon, 21 Feb 2005 02:24:31 -0000, "code_wrong" <ta*@tac.ouch.co.uk>
wrote:
我们必须支持多少个浏览器?


所有人

究竟有多少人?


数百美元

情况确实如此......我们肯定可以通过编码W3C DOM来覆盖95%的市场
How many browsers must we support?
All of them
How many are there exactly?
hundreds
This being the case .. surely we can cover 95% of the market by coding for
the W3C DOM




使用document.layers绝对没有意义,使用

document.all也没有意义,但这并不代表W3C DOM支持

(无论如何都是这样)最重要的情况是没有或者

根本无法预测的javascript支持,这些需要迎合
$当js没有运行时,b $ b优雅地退回 - 这还有

增加的好处,也会回落到那些真正古老的浏览器中。


Jim。



There''s absolutely no point using document.layers and no point using
document.all that doesn''t mean however that the "W3C DOM is supported"
(whatever that means anyway) The most important situation is no or
unpredictable javascript support at all, these need to be catered for
by falling back gracefully when the js doesn''t run - this has the
added benefit of also falling back in those really old browsers.

Jim.


Jim Ley写道:
Jim Ley wrote:
我们必须支持多少个浏览器?
How many browsers must we support?

<所有这些




这肯定是一个有争议的观点;)


-

Matt Kruse
http://www.JavascriptToolbox.com


2月20日星期日2005 21:15:23 -0600,Matt Kruse

< ne ******** @ mattkruse.com>写道:
On Sun, 20 Feb 2005 21:15:23 -0600, "Matt Kruse"
<ne********@mattkruse.com> wrote:
Jim Ley写道:
Jim Ley wrote:
我们必须支持多少个浏览器?
How many browsers must we support?


全部他们


All of them



这当然是一个有争议的观点;)



That''s certainly a debateable point ;)




当然,但是从我这边来看取决于什么你的意思是支持,

支持我的所有内容都是可以理解的,可以导航

不会随机导致脚本错误出现。即使是最后一个

我也准备单独协商编译错误。


干杯,


吉姆。



Sure, but from my side it depends on what you mean by support,
supporting for me is all the content understandable, navigatable away
not randomly causing script errors to appear. And even that last one
I''m prepared to negotiate for compile time errors alone.

Cheers,

Jim.


这篇关于我们必须支持多少个浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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