Javascript 1.3 [英] Javascript 1.3

查看:72
本文介绍了Javascript 1.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我哪些浏览器实现了Javascript 1.3?

具体来说,哪些浏览器会正确处理身份操作符(===)

?我问,因为jslint建议使用它,但我不想要

来获得太高的优势。


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。

Can anyone tell me which browsers implement Javascript 1.3?
Specifically, which browsers will handle the identity operator (===)
correctly? I ask because jslint suggests using it, but I don''t want
to get too cutting edge.

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.

推荐答案




Christopher Benson-Manica写道:


Christopher Benson-Manica wrote:
谁能告诉我哪些浏览器实现了Javascript 1.3?
具体来说,哪些浏览器会正确处理身份运算符(===)
?我问,因为jslint建议使用它,但我不希望
过于前沿。
Can anyone tell me which browsers implement Javascript 1.3?
Specifically, which browsers will handle the identity operator (===)
correctly? I ask because jslint suggests using it, but I don''t want
to get too cutting edge.




Netscape浏览器支持Javascript 1.3和===自4.06及更高版本

版本以来,IE(至少在Windows上)应该支持===,因为IE4

但这只是来自我的回忆,JScript docs don详细说明



-


Martin Honnen
http://JavaScript.FAQTs.com/



Netscape browsers support Javascript 1.3 and === since 4.06 and later
version, IE (at least on Windows) should have support for === since IE4
but that is only from my recollection, the JScript docs don''t tell that
in detail.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Martin Honnen< ma ******* @ yahoo.de>这样说:
Martin Honnen <ma*******@yahoo.de> spoke thus:
Netscape浏览器支持Javascript 1.3和===自4.06及更高版本后,IE(至少在Windows上)应该支持===,因为IE4
但这只是我的回忆,JScript文档并没有详细说明
Netscape browsers support Javascript 1.3 and === since 4.06 and later
version, IE (at least on Windows) should have support for === since IE4
but that is only from my recollection, the JScript docs don''t tell that
in detail.




我明白了。另一个问题:如果我这样明确指定JS1.3:


< script type = \" text / javascript1.3 \">


(好吧,我想这就是'它是如何完成的......),并且浏览器没有实现1.3,浏览器会做什么?


-

Christopher Benson-Manica |我*应该*知道我在说什么 - 如果我

ataru(at)cyberspace.org |不,我需要知道。火焰欢迎。



I see. Another question: If I explicitly specify JS1.3 like so:

<script type=\"text/javascript1.3\">

(well, I suppose that''s how it''s done...), and the browser does not
implement 1.3, what will the browser do?

--
Christopher Benson-Manica | I *should* know what I''m talking about - if I
ataru(at)cyberspace.org | don''t, I need to know. Flames welcome.





Christopher Benson-Manica写道:



Christopher Benson-Manica wrote:

另一个问题:如果我明确指定JS1.3:

< script type = \" text / javascript1.3 \">
(好吧,我想这就是'它是如何完成的......),浏览器没有实现1.3,浏览器会做什么?
Another question: If I explicitly specify JS1.3 like so:

<script type=\"text/javascript1.3\">

(well, I suppose that''s how it''s done...), and the browser does not
implement 1.3, what will the browser do?



如果你想使用一个版本,你需要语言属性,例如

< script language =" JavaScript1.3">

old Netscape 4.00-4.05或Netscape 3等浏览器会忽略

脚本元素的内容。


但是现在你不需要使用< ;脚本语言>,只需使用

< script type =" text / javascript">

如果某人<是b,则需要对脚本元素进行版本控制。 br />
仍然在Netscape 4,然后几乎没有th 4.00-4.05和IE5以及
以后不应该有任何问题


-


Martin Honnen
http://JavaScript.FAQTs.com/



If you want to use a version then you would need the language attribute e.g.
<script language="JavaScript1.3">
older browsers like Netscape 4.00-4.05 or Netscape 3 then ignore the
script element''s content.

But nowadays you shouldn''t need to use <script language>, simply use
<script type="text/javascript">
the need for versioning your script elements is gone, if someone is
still around with Netscape 4 then hardly with 4.00-4.05 and with IE5 and
later there shouldn''t be any problems either

--

Martin Honnen
http://JavaScript.FAQTs.com/


这篇关于Javascript 1.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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