var arr=[ {name:'one',sex:'girl',handsome:true}, {name:'two',sex:'girl',handsome:false}, {name:'thr',sex:'boy',handsome:true} ] 我需要根据这个人帅不帅来决定,筛选后的结果 Array.prototype.removeItemByAttr=function (attr) { var that=this; var temp=[]; for(var i=0; i<that.l…