'JSON' is undefined error in JavaScript in Internet Explorer

前端 未结 7 1646
走了就别回头了
走了就别回头了 2020-12-23 19:45

We are using jQuery in our application. We have used a jQuery plugin to implement JavaScript session.

It is working properly in Firefox and most Internet Explorer 8

7条回答
  •  甜味超标
    2020-12-23 19:58

    I had this error 2 times. Each time it was solved by changing the ajax type. Either GET to POST or POST to GET.

    $.ajax({
            type:'GET', // or 'POST'
            url: "file.cfm?action=get_table&varb=" + varb
        });
    

提交回复
热议问题