Google CDN에서 JQuery를 사용하고 있는데 줄 12 (최소 파일의 경우) 및 스택 1076 (IE8의 경우)에서 스택 오버플로 오류가 발생했습니다. 압축되지 않은 것). 스택 오버플로 오류가 날 걸리는 줄에서 JQuery와 코드는합니다 :JQuery (12/1076 줄)에서 IE의 스택 오버플로
JQuery.js ...
makeArray: function(array) {
var ret = [];
if(array != null){
var i = array.length;
// The window, strings (and functions) also have 'length'
// @ALL : this is the line i am getting error on ...
if(i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval)
ret[0] = array;
else
while(i)
ret[--i] = array[i];
}
return ret;
},
... 여기
내 코드입니다 : ...$(document).ready(function(){
$("#newcmpgn").validate({
errorElement:'dt',
rules:{agree: "required"},
messages:{agree: "You need to accept to Terms and Conditions in order to continue."}
});
$("#newcmpgn").submit(function(){
if($("#newcmpgn").valid()){
var ubal = Number($("#userbalance").val());
var camt = Number($("#amount").val());
if(ubal > camt){
$("#newcmpgn").attr('action', '<?= site_url('account/payments/actpayment/'.$cmpgn_id) ?>');
return true;
}
if($("#autorenew").attr('value') == 'Y'){
$("#newcmpgn").attr('action', '<?= site_url('account/payments/makepayment/'.$cmpgn_id) ?>');
}else{
$("#newcmpgn").attr('action', '<?= site_url('account/payments/makesinglepayment/'.$cmpgn_id) ?>');
}
$("#newcmpgn").submit();
return true;
}
return false;
});
});
양식 제출 중 오류가 발생했습니다. IE8에서 스택이 부족한 것에 대해 울기 시작하는 재귀 코드는 여기에 표시되지 않습니까?
감사합니다. Dw.
내가 언급하는 것을 잊었다 - 그것은 또한 사파리 4를 부서졌다! 예 - 오류가없고 메시지가 없습니다. Safari 4가 충돌합니다! Firefox 3.5에는 오류 메시지가 표시되지 않습니다. –