다음 자바 스크립트에서 (#todoList> div)의> 기호 의미는 무엇입니까?자바 스크립트에서 '>'의 의미는 무엇입니까?
$('#btnClear').click(function() {
$('#todoList > div').each(function() {
var entity = $(this).data('entity');
$todo.context.TodoEntries.remove(entity);
});
$todo.context.saveChanges(updateView);
});
#todoList는 div의 ID입니다. "없습니다"
<div id="todoList"></div>
그리고 이것은 무엇 문
$('#wrapper>div:not(#providerSelection)')
에서
?
CSS 선택기에서 영감을 얻은 것은 첫 번째 수준의 어린이를 의미합니다. – kcsoft
이것은 실제로 기본 CSS 선택기와 같습니다. Jquery에 요소를 선택하기 위해 피드를 제공합니다. 자세한 내용은 다음을 참조하십시오. https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors – thatidiotguy
http://stackoverflow.com/questions/3225891/what-does-mean-in- CSS 규칙 – Brad