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

前端 未结 6 2133
臣服心动
臣服心动 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:29

    Check if your page just returns OK or if it returns 'OK'. Only 'OK' is valid JSON. Use a tool like JSONLint to check the value that comes from the request.

提交回复
热议问题