Implementing Mozilla's toSource() method in Internet Explorer

后端 未结 8 901
轮回少年
轮回少年 2020-11-27 07:41

Has anyone implemented Mozilla\'s Object.toSource() method for Internet Explorer and other non-Gecko browsers? I\'m looking for a lightweight way to serialize simple object

8条回答
  •  忘掉有多难
    2020-11-27 07:50

    Nobody has mentioned it yet, so I'll point out there is a polyfill available for Mozilla's Object.toSource at https://github.com/oliver-moran/toSource.js

提交回复
热议问题