'JSON' is undefined error in IE only

前端 未结 6 1854
执念已碎
执念已碎 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 04:44

    To make your function works better in IE import JSON2 parser code in your file, as IE by default does not support JSON.Stringify().

    It can be found here

提交回复
热议问题