//删除数组元素
//数组,属性名称,属性值
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;
});
}