0
我知道我通過屬性獲得元素,例如存儲在變量中的jQuery選擇器:如何按屬性值選擇特定元素?
$('.js_aBunchOfElements span[data-stuff="special"]');
然而,一旦我存儲在一個變量的選擇:
var bunch = $('.js_aBunchOfElements span');
我迷茫瞭如何在bunch
我與屬性data-stuff="special"
元素搜索。