大佬教程收集整理的这篇文章主要介绍了jquery – Firefox内部错误:递归过多,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
请给我一些建议.谢谢
$(function(){ $('#delivery').accordion({ header: '.accTrigger',autoHeight: false,animated: 'easeslide',change: function(event,ui) { alert("here"); event.preventDefault(); $.ajax({ url: URL,type: 'GET',dataType: 'html',timeout: 18000,success: function(data,textStatus,xhr) { alert("sus"); },error: function(xhr,errorThrown) { alert("err" + errorThrown); } }); $("input",ui.newHeader).prop("checked","checked"); $("input",ui.newHeader).trigger('click'); $(".accSection").each(function() { $(this).removeClass("active"); }); ui.newHeader.parent().addClass("active"); fitContentBackground(); } }); /** * Loop through all the payment types and enable the respective accordin */ $.each($('.accSection'),function(index,value) { if ($('input[type="radio"]',value).is(':checked') == true) { $('#delivery').accordion('activate',index); $(this).addClass("active"); } else { $(this).removeClass("active"); } }); });
谢谢大家的回复
即使这个简单的片段也会产生相同的错误(InternalError:递归太多)
$(document).ready(function() { $("#buttontest123").click(function(evt){ alert("herepavan"); evt.preventDefault(); setPayment(); }); function setPayment() { alert("here1"); $.ajax({ url: 'URL',xhr) { alert("sus"); },errorThrown) { alert("err"+errorThrown); } }); } }); </script>
以上是大佬教程为你收集整理的jquery – Firefox内部错误:递归过多全部内容,希望文章能够帮你解决jquery – Firefox内部错误:递归过多所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。