【发布时间】:2009-11-11 14:07:22
【问题描述】:
<script type="text/javascript">
$(document).ready(function(){
function listadepoimentos(page){
// $.get("ajaxes.php", {act:'listadepoimentos', page:page}, function a(b){$('#holder').html(b)}, "text");
$.ajax({
type: 'GET',
url: 'ajaxes.php',
data: {act:'listadepoimentos', page:page},
success: function(data){
//alert(data);
$('#holder').html(data);
},
error: function(xhr, type, exception){
alert("Error: " + type);
}
});
}
listadepoimentos(0);
});
</script>
它在所有浏览器上都可以正常工作,但某些 ie8 除外。是的,一些。我试过各种 ie8 浏览器,有的可以,有的不行。
有合理的答案吗?
【问题讨论】:
-
在 IE 上使用 AJAX GET 时,应始终指定
cache: false。无论哪种方式,什么工作不正常?您遇到错误了吗?
标签: jquery ajax internet-explorer get