2016年6月5日

摘要: each的使用方法在jQuery里有一个each方法,用起来非常的爽,不用再像原来那样写for循环,jQuery源码里自己也有很多用到each方法。其实jQuery里的each方法是通过js里的call方法来实现的。下面简单介绍一下call方法。call这个方法很奇妙,其实官方的说明是:“调用一个对 阅读全文
posted @ 2016-06-05 11:56 念殇雲 阅读(303) 评论(0) 推荐(0) 编辑
摘要: JQUERY的父,子,兄弟节点查找方法 jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$(“span”).parent()或者$(“span”).parent(“.class”) jQuery.parents(expr),类似于jQuery.parents(exp 阅读全文
posted @ 2016-06-05 11:56 念殇雲 阅读(163) 评论(0) 推荐(0) 编辑

导航