After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:jQuery load event
$(document).ready(function处理); $().ready(function处理); $(function处理); 对第一种加载的封装而已
2016-11-230个赞
Courses in the relevant section:jQuery traversal parent() method
parent()方法允许我们能够在DOM树中搜索到这些元素的父级元素,从有序的向上匹配元素,并根据匹配的元素创建一个新的 jQuery 对象
2016-11-240个赞
Courses in the relevant section:jQuery common event operations
$().事件类型(事件处理函数fn); //设置事件 $().事件类型(); //触发事件执行 事件类型:click、keyup、keydown、mouseover、mouseout、blur、focus等等 例如:$(‘div’).click(function(){事件触发过程this});
2016-11-230个赞
Courses in the relevant section:jQuery traversal parents() method
parent只会查找一级,parents则会往上一直查到查找到祖先节点
2016-11-170个赞
Courses in the relevant section:jQuery traversal closest() method
closest()方法给定的jQuery集合或元素来过滤元素
2016-11-170个赞
Courses in the relevant section:jQuery traversal next() method
next()方法选择性地接受同一类型选择器表达式
2016-11-170个赞
Courses in the relevant section:jQuery event binding
$().bind(事件类型,function事件处理);
2016-11-230个赞
Courses in the relevant section:jQuery traversal prev() method
jQuery是一个合集对象,如果想快速查找指定元素集合中每一个元素紧邻的前面同辈元素的元素集合,此时可以用prev()方法
2016-11-170个赞
Courses in the relevant section:jQuery traversal siblings()
siblings()无参数 取得一个包含匹配的元素集合中每一个元素的同辈元素的元素集合
2016-11-170个赞
Courses in the relevant section:jQuery traversal add() method
.add()的参数可以几乎接受任何的$(),包括一个jQuery选择器表达式,DOM元素,或HTML片段引用
2016-11-170个赞
Courses in the relevant section:jQuery traversal each()
each是一个for循环的包装迭代器 each通过回调的方式处理,并且会有2个固定的实参,索引与元素 each回调方法中的this指向当前迭代的dom元素
2016-11-240个赞
Courses in the relevant section:jQuery node append
append(content):向每个匹配的元素内部后置追加内容 prepend(content):向每个匹配的元素内部前置追加内容 appendTo(content):把所有匹配的元素后置追加到另一个、指定的元素集合中 prependTo(content):把所有匹配的元素前置追加到另一个、指定的元素集合中
2016-11-230个赞
Courses in the relevant section:jQuery mouse event click event
语法格式:$('').click()
2016-11-170个赞
Courses in the relevant section:jQuery mouse events mousedown and mouseup events
绑定$ele元素,不带任何参数一般是用来指定触发一个事件,可能一般用的比较少
2016-11-170个赞
Courses in the relevant section:jQuery node replacement
$("select").replaceWith(content); $('select')被content替换 replaceAll(selector):用匹配的元素替换掉所有selector匹配到的元素 $('content').replaceAll(select); 用content主动替换select元素
2016-11-230个赞