假设我有这个 HTML:
<div class="par">
<div class="s1">
<a href="#" class="s1">link</link>
</div>
<div class="s8">
<a href="#" class="s1">link</link>
<div class="s1">
<a href="#" class="s1">link</link>
</div>
</div>
<div class="ds44">
<a href="#" class="s1">link</link>
</div>
<span class="t">This is text</span>
<div class="thisOne">
<a href="#" class="s1">link</link>
</div>
</div>
现在我想调用这个函数:
function aFn(){
alert('Omid');
}
通过单击<div class="par">
except<div class="thisOne">
及其子项中的任何元素。我怎样才能做到这一点?