jQuery 1.4新增的jQuery.contains()
Today I went out comp. it seems big dust is blowing,look closer is the snow.of course it diffierent of yesterday's
which called sleet. it means rain and snow togather.rain contains snow.Today I want's learn jquery.contains().
jQuery.contains( container, contained )
Returns: Boolean
sample :
Check if an element is inside another.
jQuery.contains(document.documentElement, document.body); // true
jQuery.contains(document.body, document.documentElement); // false
containerThe DOM element that may contain the other element. 元素包含另外元素
containedThe DOM node that may be contained by the other element.//元素节点被其它元素包含
今天走出comp.,外面飘着好大灰尘,仔细看原来是下雪了,跟昨天不同,昨天是雨加雪
jQuery.contains(包含者,被包含者)
原创文章转载请注明出处:云飞扬IT的blog





