https://github.com/douglascrockford/JSON-js
使用其中的 json2.js 作为兼容。
这个JS中的函数将JSON对象转换成JSON字符串,解决 IE6、7、8不能使用 JSON.stringify 函数的问题!

<!--[if lt IE 9]>
    <script src="json2.js"></script>
<![endif]-->


这样JSON.stringify 便可以正常使用!
得到JSON字符串后传回服务器,PHP作一下json_decode就行了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-09-19
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2022-12-23
  • 2021-11-04
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案