gpt4 book ai didi

jQuery AJAX GET html 数据 IE8 不起作用

转载 作者:行者123 更新时间:2023-12-01 06:24:22 25 4
gpt4 key购买 nike

这是代码,但它不适用于 IE8 和 7(IE9、chrome、firefox、safari、opera 都可以)。我已经尝试了很多东西(meta utf-8 代码、php header 代码、获取警报、缓存:false)。我能做什么,我需要帮助。感谢您的兴趣。

        var request = $.ajax({
type:"GET",
url: "_veri.php?t=icerik_getir&id="+tabopen,
dataType: "html",
});
request.done(function(msg) {
$(".tab-contentmenu").html(msg);
});

编辑:

alert 给了我在所有浏览器中请求的数据,但在“.tab-contentmenu”中仍然没有请求的数据,我该怎么办?

            var request = $.ajax({
type:"GET",
context: document.body,
url: "_veri.php?t=icerik_getir&id="+tabopen,
dataType: "html"
});
request.done(function(msg) {
$(".tab-contentmenu").html(msg);
alert(msg);
});

最佳答案

我解决了这个问题,在 php 文件中有一个未关闭的 div,我将其删除。

关于jQuery AJAX GET html 数据 IE8 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8792815/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com