isAncestor
Boolean isAncestor ( haystack , needle )
Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
Parameters:
haystackThe possible ancestor
needleThe possible descendent
Returns: Boolean
Whether or not the haystack is an ancestor of needle
沒有留言:
張貼留言