'JSON' is undefined error in IE only

前端 未结 6 1906
执念已碎
执念已碎 2020-12-01 04:22

I\'m making an AJAX call to a WCF service and when I pass in my data i use JSON.stringify()

The call returns and works fine in FF, & Chrome, but not IE8. I get

6条回答
  •  鱼传尺愫
    2020-12-01 05:07

    Use json2 for a consistent cross browser implementation.

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

提交回复
热议问题