在下面的javascript中,>号在(#todoList > div)中是什么意思?
$('#btnClear').click(function () {
$('#todoList > div').each(function () {
var entity = $(this).data('entity');
$todo.context.TodoEntries.remove(entity);
});
$todo.context.saveChanges(updateView);
});在Html文件中,#todoList是div的id。
<div id="todoList"></div>在这条语句中
$('#wrapper>div:not(#providerSelection)')什么是":not"?
发布于 2013-07-01 23:54:11
它是parent的子选择器
选择由“parent”指定的元素的“child”指定的所有直接子元素。
表示#todoList中的子div
请参阅--> http://api.jquery.com/child-selector/接口
子组合符(E > F)可以被认为是后代组合符(E,F)的一种更具体的形式,因为它只选择第一级后代。
https://stackoverflow.com/questions/17408633
复制相似问题