9

我想用现在和将来都可以使用的新ECMAScript5 功能编写我的 JS 代码。

由于并非所有浏览器都支持所有功能(尤其是 IE),例如Object.createArray.isArrayJSON.

我知道一些解决方法,例如json2.js用于归档JSON支持。我想了解其他功能的更多 polyfill 或解决方法。

4

1 回答 1

9

看看这些:

https://github.com/kriskowal/es5-shim

https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills(es5 shims 列在中间)

于 2011-11-22T03:57:26.163 回答