//刪除數組元素
//數組,屬性名稱,屬性值
function removeCodeNumList(arrPerson, objPropery, objValue) {
return $.grep(arrPerson, function (cur, i) {
return cur[objPropery] != objValue;
});
}
//獲取數組元素
//數組,屬性名稱,屬性值
function getCodeNumList(arrPerson, objPropery, objValue) {
return $.grep(arrPerson, function (cur, i) {
return cur[objPropery] == objValue;
});
}
