특정 조건을 충족하는 경우이 "elems"배열에서 현재 요소를 설정 해제하는 방법은 무엇입니까?반복 내에서 요소를 "설정 해제"하는 방법
var elems = $('input, select, textarea', this);
elems.each(function(){
if($(this).attr('name') == 'something') {
// unset `this` from elems ??
}
});
나는 그것에 CONSOLE.LOG를하고는 키가 표시되지 않습니다
...
"unset"을 정의하십시오. – RedFilter
잘 배열에서 제거, PHP에서 unset 의미 : – Alex