www.cftea.com

jQuery 取元素-find()、children()

ITPOW2018/9/25 12:58:43

find()、children()

都是在当前元素的下级中找,find() 包括儿子、孙子、重孙……children() 只包含儿子。

jQuery 不像 XML 解析器,XML 解析器可能会把空白节点也取出来,jQuery 不会。

<<返回首页<<