这个ajax调用会使IE11和CSS动画冻结,但在Mozilla和Chrome中却都运行正常。到目前为止,我尝试了以下几种解决方法:
1、禁用缓存:我从服务器禁用了它;
2、尝试过setTimeout技巧;
3、删除了嵌套函数,导致 .html()方法无法单独运行。
$.ajax({type: 'POST',
url: "accordion.php?cat="+aid,
async: true,
success: function (html) {
$("#accordion").animate({ right: "140%"},500, function () {
$(this).css("right","-25%", $(this).hide(1, function() {
$(this).html(html).show(1, function() {
$(this).animate({right: "100%"},1000),$ajaxloading.fadeOut("slow")})}));});}})