IE does not refresh after Ajax get/posts

前端 未结 5 666
旧时难觅i
旧时难觅i 2021-01-23 20:26

I have a small problem that I don\'t know how to deal with.

I\'ve written some jQuery post/gets which work fine in FF, Opera and Chrome. But when run from explorer (any

5条回答
  •  时光说笑
    2021-01-23 20:40

    Try setting the cache: false parameter to your AJAX requests as browsers might cache GET requests:

    $.ajax({
        url: '/foo',
        type: 'GET',
        cache: false,
        success: function(result) {
            // TODO: update the DOM with the results
        }
    });
    

提交回复
热议问题