weixin_33705053 2014-04-11 03:38 采纳率: 0%
浏览 85

为什么ajax调用会使IE11和CSS动画冻结?

这个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")})}));});}})
  • 写回答

1条回答 默认 最新

  • 乱世@小熊 2014-04-11 12:52
    关注

    I found the problem. The problem is Active Content filtering feature of IE. My php includes script resources linked to .js files. During the writing of php, IE hangs when it comes to those lines. It is a Jquery accordion and needs several js'es to operate. I deleted script tags and was working fine. I think I'll move those tag to main page and they will be loaded and run always even they are not needed; which is not my first preference.

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog