<script> $(function () { //获取所有的li注册鼠标进入和离开的事件 $(".wrap>ul>li").mouseover(function () { $(this).siblings("li").css("opacity",0.5); $(this).css("opacit ...
分类:
其他好文 时间:
2020-04-08 21:04:02
阅读次数:
67
$(function () { //获取left的li 注册鼠标进入的事件 $("#left>li").mouseover(function () { //obj.siblings()获取兄弟元素的方法 //现在获取的是obj的所有的兄弟元素 //obj.siblings("li") //获取的是o ...
分类:
其他好文 时间:
2020-04-08 20:41:54
阅读次数:
100
将一系列给定数字顺序插入一个初始为空的小顶堆H[]。随后判断一系列相关命题是否为真。命题分下列几种: x is the root:x是根结点; x and y are siblings:x和y是兄弟结点; x is the parent of y:x是y的父结点; x is a child of y ...
分类:
其他好文 时间:
2020-02-20 20:15:12
阅读次数:
85
鼠标事件 .click 鼠标单击 .dblclick 鼠标双击 // 单击事件 $("a").click(function(){ $("img").eq($(this).index()) // 获取当前点击的a的index .css({"opacity":"1"}) .siblings() .css ...
分类:
其他好文 时间:
2020-02-16 22:14:17
阅读次数:
102
未完!!! 使用方法: find(name,attrs,recursive,text,**kwargs)find返回的匹配结果的第一个元素 其他一些类似的用法:find_parents()返回所有祖先节点,find_parent()返回直接父节点。find_next_siblings()返回后面所有 ...
分类:
编程语言 时间:
2020-02-01 19:12:35
阅读次数:
75
parents()方法,返回dom节点的祖先元素,如果在括号类加现有的属性名,则返回括号传的当前元素; — — — — — 分 — — — — — — — 割 — — — — — — — 线 — — — — — — — — — siblings()方法,返回dom节点的所有同级元素。 例: $(do ...
分类:
Web程序 时间:
2020-01-19 12:42:45
阅读次数:
123
同胞拥有相同的父元素。 通过 jQuery,您能够在 DOM 树中遍历元素的同胞元素。 在 DOM 树中水平遍历 有许多有用的方法让我们在 DOM 树进行水平遍历: siblings() next() nextAll() nextUntil() prev() prevAll() prevUntil( ...
分类:
Web程序 时间:
2020-01-11 15:25:44
阅读次数:
129
树 基本概念 1.最多一个先驱 但可能有多个后继 表示具有层次的分支关系 2.Siblings(兄弟): nodes share the same parent Degree(树的扇出) of a tree: the maximum number of its node. 3.深度为最大层数 第i层 ...
分类:
其他好文 时间:
2019-12-29 22:14:09
阅读次数:
85
$("input[type=checkbox][tag=ckAll]").change(function () $(this).parent().parent().siblings().find("input[type=checkbox]").attr("checked",$(this).is(":... ...
分类:
其他好文 时间:
2019-12-27 15:18:48
阅读次数:
85
http://bkvalve.mmler.cn/products/butterfly-valve/ var item = $('.p02-1-s1 .tab > li'); item.click(function() { $(this) .addClass('current') .siblings( ...
分类:
其他好文 时间:
2019-12-24 18:28:11
阅读次数:
94