我正在与jQuery maphighlight一起工作,我需要groupBy功能中的更多功能。允许多个类
我需要的东西,可以让一个类或其他替换此
areas = map.find('area['+area_options.groupBy+'="'+$(this).attr(area_options.groupBy)+'"]');
。目前,如果我使用它按类别分组,它将不匹配class="opt1"
与元素class="opt1 opt4"
的元素。我需要元素“opt1 opt4”来匹配所有“opt1”和“opt4”元素,反之亦然。
到目前为止,我已经得到了拆分类
groupClasses = $(this).attr(area_options.groupBy).split(" ");