'JSON' is undefined error in IE only

前端 未结 6 1909
执念已碎
执念已碎 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:56

    JQuery 2.x is no longer compatible with IE 6-8. JQuery 2.0 beta 2 release notes

    I know the main question is in regard to older versions of JQuery, but this was causing the error for me. I installed JQuery 1.x, which is API-compatible with JQuery 2.x, and added the following detection code:

    
    
    

提交回复
热议问题