Javascript Versions

博客介绍了Javascript/ECMAScript/JScript有多个版本,不同版本应用于不同场景,还给出了各版本与浏览器对应关系的表格。重点指出IE虽支持JavaScript 1.5,但在script标签的“language”属性中不支持,若设置大于“javascript1.2”的值,脚本可能无法执行。

There have been several revisions of Javascript/ECMAScript/JScript, and different versions have been deployed in different situations. This table details which versions relate to which browser.

JavascriptMozillaJScriptIEECMA
JavaScript 1.0Netscape 2JScript 1.0Early IE 3
JavaScript 1.1Netscape 3JScript 2.0Late IE 3ECMAScript 1 plus switch
JavaScript 1.2Netscape 4--
JavaScript 1.3Netscape 4.5JScript 3.0IE 4
JavaScript 1.4Server only--
JavaScript 1.5Mozilla/Netscape 6JScript 5IE 5ECMAScript 3

warning on IE's "support" of JavaScript 1.5

IE does support JavaScript 1.5, but it doesn't support it in the "language" attribute of the script tag.

If you include the language attribute (which was originally meant to allow a page to gracefully degrade in older browsers, a concept that's increasingly obsolete), you can't have a value greater than "javascript1.2". Anything besides "javascript" or "javascript1.2" and IE will likely not execute the script.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值