Polyfill 或 ECMAScript5 新功能的解决方法?
我想使用现在和在未来。
由于并非所有浏览器都支持所有功能(尤其是 IE),例如 Object.create
、Array.isArray
或 JSON
。
我知道一些解决方法,例如使用 json2.js
来实现 JSON
支持。我想了解其他功能的更多填充或解决方法。
I want to write my JS code with the new ECMAScript5 features that working today and in the future.
As not all browsers support all the features (especially IE) such as Object.create
, Array.isArray
or JSON
.
I knew a few workarounds such as use json2.js
to archieve JSON
support. I want to know more polyfills or workarounds for the other feature.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这些:
https://github.com/kriskowal/es5-shim
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills (es5 垫片列在中间)
Take a look at these :
https://github.com/kriskowal/es5-shim
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills ( es5 shims listed in the middle)