How to get the children of the $(this) selector?

前端 未结 18 2376
日久生厌
日久生厌 2020-11-22 05:10

I have a layout similar to this:

and would like to use a jQuery selector to selec

18条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 05:34

    jQuery's each is one option:

    $('#test img').each(function(){ console.log($(this).attr('src')); });

提交回复
热议问题