Javascript loop문에서 빠져나오기(중단하기)
Ext.Array.eachreturn은 작동하지 않음return false로 빠져나와야 함let hasChildNodes = false;Ext.Array.each(checkedRows, function (node) { if (node.hasChildNodes()) { Ext.Msg.alert('Warning', '하위 record가 있으면 삭제할 수 없습니다!'); hasChildNodes = true; // Mark that a child node was found return false; // Stop further iterations }});// Exit the function if child nodes were foundif (hasChildNode..
2024.12.22