我有一套干::
<div class="wrapper">
<div class="uct_attr" data-tags="one two three four">stuff</div>
<div class="uct_attr" data-tags="three four">stuff</div>
<div class="uct_attr" data-tags="one three five">stuff</div>
<div class="uct_attr" data-tags="one two six">stuff</div>
<div class="uct_attr" data-tags="four five six">stuff</div>
</div?
我如何做,并就与我问询相匹配的问题采取行动? 牢记我的愿望是将数据标的词句同起来。
包括:
// if match one
$( .wrapper .uct_attr[data-tags="one"] ).doMatch();
// the rest that didn t match one
$( .wrapper .uct_attr[data-tags!="one"] ).doNotMatch();
我认为,这种归属有多层次的标签。
Any help on this would be great.
C. 结 论