JQuery获取this当前对象子元素对象
<div>
02
<span>span test</span>
03
<a href=
""
></a>
04
<img src=
"test.jpg"
/>
05
</div>
06
07
假如你已经获取到div为当前的
this
对象,怎么去获取span, a, img等子元素呢?
08
其实很简单:
09
10
$(
this
).children(
"span"
)
11
$(
this
).children(
"a"
)
12
$(
this
).children(
"img"
)