我目前正在做一个项目,我正在使用 ajax jQuery 获取一些数据。我正在使用以下代码:
$.ajax({
dataType : 'html',
type: 'POST',
url : url,
//cache: false,
data : data,
complete : function() { },
success: function(data)
{
$('#servicelist').hide();
$('#stafflist').show();
data=$(data).find('div#stafflistcontent');
$('#stafflist').html(data);
}
});
当我试图在第一行提醒数据时ajax success
,它正在返回页面的完整 HTML,现在我要找到<div id="stafflistcontent">
. 在 Firefox 和 Chrome 中它返回正确的 HTML,但在 IE 中它只返回 OBJECT OBJECT,我该如何解决这个问题?
编辑
IE版本:IE8
jQuery 版本:1.9.1