这是代码,但它不适用于 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/