jquery GET请求不在IE中工作

2 php ajax jquery cross-browser

我有以下jquery代码:


function update(){
    $.get("getlatest.php", {
        id: $.cookie('last_post_id')
    }, function(response){


        $('#board_posts').prepend(response);
        $('.incoming_post').slideDown("slow").effect("highlight", {}, 3000);
        $('.incoming_post').toggleClass("incoming_post").addClass("old_post");



    }, "html");
}
Run Code Online (Sandbox Code Playgroud)

该功能将检查留言板是否有新帖子,如果有,将加载它们.出于某种原因,新数据从未在IE 7中加载,但在FF和Chrome中加载良好.此外,当我刷新页面时,数据也不会进入 - 只有当缓存被清除时.

有关此问题的任何帮助吗?

Bli*_*ixt 6

Internet Explorer缓存请求.查看cachejQuery Ajax请求标志.它将随机查询字符串参数添加到URL(基于当前时间),以使其唯一且不可缓存.如果您愿意,也可以自己动手:'request.php?_=' + (+new Date())