Ajax won't get past readyState 1, why?

前端 未结 5 1333
轻奢々
轻奢々 2020-12-09 19:15

I\'m trying to get this function to work, which does a request for parameter url then sends the responseText to callback which is a function.

5条回答
  •  悲&欢浪女
    2020-12-09 19:51

    I had the same problem on FireFox but not on Chrome.

    The problem was my response had the mime-type set to "application/octet-stream".

    Changing it to "text/html" made it work on FireFox too.

提交回复
热议问题