function getClosestOperator($source) { var $closestContainer = $source.closest('div.tableStyle-2-container'); var $closestOperator = $closestContainer.children('div.tableStyle-2-operator'); if($closestOperator.length == 0) { getClosestOperator($closestContainer); } else { return $closestOperator } };
請問,這個方法(遞歸)為什么會導致內存溢出?
ITMISS
2018-09-11 13:26:53