jQuery fileupload not working in IE 8 and 9

后端 未结 6 1915
梦如初夏
梦如初夏 2021-01-01 22:44

\"enter

This code works in FF and chrome. In IE 8 or 9 I get a 500 error saying a not

6条回答
  •  迷失自我
    2021-01-01 23:04

    On IE if you return data like json when you upload a file you can get this data(json) like this:

    done: function (e, datos)
    {
    try
    {
       //This in FF, Chrome, Safari
       data=eval(JSON.parse(datos.result));
    }catch (er)
    {
        //This in IE
        data=eval(JSON.parse(datos.result[0].documentElement.innerText));
    }
    

提交回复
热议问题