使用$.grep()將符合條件的項目丟(return)到新的陣列裡面。 var femaleList = $.grep(people, function(item, index){ return item.sex === 'female'; }); ...
確定! 回上一頁