SCRIPT5009: 'JSON' is undefined

前端 未结 7 801
刺人心
刺人心 2020-12-14 14:39

I get the following error in IE 9 SCRIPT5009: \'JSON\' is undefined only when in compatability mode. the line causing this error is

JSON.string         


        
7条回答
  •  独厮守ぢ
    2020-12-14 15:36

    You need to include json2.js

    see json2 inclusion

    for more details. There are cases where we have to deal with cases where clients use IE7 standards. So our code had to cater to such cases too. Ours being a retail website is accessed by hundreds of clients who use IE7 standards. Including json2 solves this issue

提交回复
热议问题