jQuery $.ajax Not Working in IE8 but it works on FireFox & Chrome

前端 未结 6 2154
臣服心动
臣服心动 2020-12-17 01:58

I have the following ajax call which works perfectly in Firefox and Chrome but not IE:

function getAJAXdates( startDate, numberOfNights, opts ) {

    var mo         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-17 02:33

    Most of the time IE-specific parse errors are caused by extra commas. For example, [1, 2, 3,] is valid in FF but not in IE. Anyway, you should paste in the JSON response, it is impossible to tell the problem without that.

提交回复
热议问题