2012-05-06 5 views

답변

4

콜백에서 false를 반환합니다.

var map = { 
    'flammable': 'inflammable', 
    'duh': 'no duh' 
}; 
$.each(map, function(key, value) { 
    alert(key + ': ' + value); 
    if (key == 'flammable') { 
    //Do your result processing here (e.g. call another function) 
    return false; //found 
    } 
}); 
관련 문제