使用jquery动画时出现错误“第13行的内存不足"; [英] Error while using jquery animate "Out of memory at line: 13"

查看:64
本文介绍了使用jquery动画时出现错误“第13行的内存不足";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下代码(jquery)显示我的产品动画

I am trying to display my products animation with the following code (jquery)

var prodNum = <%=prodNum %>;
var i = 1;  
$.timer(5000, function(timer) {     
    $(".prods").hide("slide", { direction: "down" }, 500, function() { 
        $(".prods").html("<div class=\"prod\">" + $("#pr" + ((4*i) % prodNum)).html() + "</div>" + 
                        "<div class=\"prod\">" + $("#pr" + ((4*i + 1) % prodNum)).html() + "</div>" + 
                        "<div class=\"prod\">" + $("#pr" + ((4*i + 2) % prodNum)).html() + "</div>" + 
                        "<div class=\"prod\">" + $("#pr" + ((4*i + 3) % prodNum)).html() + "</div>");
        $(".prods").show("slide", { direction: "down" }, 500);
        i++;
     });


});

它与firefox一起正常工作,但是在IE中我收到第13行的内存不足" 我怎样才能解决这个问题? 我正在使用1.4.2版本

It works fine with firefox, but in IE I get "Out of memory at line: 13" How can I fix this? I am using version 1.4.2

推荐答案

发现了问题.

这是jQuery和jQuery.ui版本之间的可计算性

It was a computability between the jQuery and the jQuery.ui versions

谢谢

这篇关于使用jquery动画时出现错误“第13行的内存不足";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆