已达到最大堆栈大小

Maximum stack size over reached

本文关键字:大堆栈      更新时间:2023-09-26
   var myArray = [];
     $('#students_targeted option:selected,
#cc_students_targeted option:selected').each(function(){
       myArray.push(data);
     });

这意味着您已达到最大堆栈大小(换句话说,您已达到数组中元素的最大限制)。

UPD:您可能需要使用以下代码:

   var myArray = [];
     $('#students_targeted option:selected,
#cc_students_targeted option:selected').each(function(){
       myArray.push($(this).val());
     });