What modernizer scripts exist for the new ECMAScript 5 functions?

前端 未结 4 1435
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 11:54

ECMAScript 5 has quite a few nice additions. John Resig has a good overview here. Here is a good ECMAScript 5 compatibility table.

A lot of this stuff can be \"fake

4条回答
  •  难免孤独
    2020-12-08 12:36

    If you don't mind learning the library and writing some code yourself, you can find some code implementations of the ECMAScript 5 library at

    https://developer.mozilla.org/En/JavaScript/ECMAScript_5_support_in_Mozilla

    For example, the code for Array.filter

    And then Crockford has JSON.parse/stringify in json2.js

    https://github.com/douglascrockford/JSON-js

提交回复
热议问题