Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
参考 ECMAScript 5 兼容性表页面,Firefox 4 - 6 和 Chrome 13 - 14最兼容的浏览器。
Mozilla JavaScript 参考可能是最接近的。有关详细信息,请参阅 ECMAScript5 支持的条目。
更新 (2011-08-05)
看来 ES5 向后兼容 ES3 (1, 2)。破坏兼容性的唯一方法是使用“use strict”来启用 ES5 的一个子集,该子集被认为不易出错。
Referring to ECMAScript 5 compatibility table page, Firefox 4 - 6 and Chrome 13 - 14 are the most compatible browsers.
The Mozilla JavaScript Reference might be the closest. See its entry for ECMAScript5 support for details.
Update (2011-08-05)
It appears that ES5 is backward compatible with ES3 (1, 2). The only way to break the compatibility is to use "use strict" to enable a subset of ES5 deemed as less error prone.
新版(2011)“Javascript:权威指南”全面涵盖了 ECMAScript 5 函数,并展示了如何在许多情况下实现 ECMAScript 3 等效项 :-)
The new (2011) edition of "Javascript: The Definitive Guide" covers ECMAScript 5 functions thoroughly, and shows how to implement ECMAScript 3 equivalents in many cases :-)
已弃用的功能是启动“使用严格”模式时禁用的功能(IMO,这是一种相当糟糕的方法,因为它要求他们为下一个版本提出新术语......但是我离题了)。
我发现 Resig 关于此的文章相当有用,尽管我还没有验证他在这里所说的任何内容:
http://ejohn.org/blog/ecmascript-5-严格模式-json-and-more/
The features that have been deprecated are the features that are disabled when the "use strict" mode is initiated (a rather poor way of doing it, IMO, since it requires them to come up with new terminology for the next version... but I digress).
I found Resig's article on this rather useful, although I haven't verified anything he says here:
http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/