您现在的位置:首页 >> 前端 >> 内容

jquery中的find()方法

时间:2017/3/27 9:55:00 点击:

  核心提示:jquery中的find()方法$(.parent).find(.child) //寻找父节点下的子元素$(.child,.parents)//这两种效果一样如果想要在某个元素下寻找特定的元素,就必须...

jquery中的find()方法

$(".parent").find(".child") //寻找父节点下的子元素

$(".child",".parents")//这两种效果一样

如果想要在某个元素下寻找特定的元素,就必须对 $("#id").find(".child")获取其子元素。

Tags:JQ QU UE ER 
作者:网络 来源:gxf_ming的博