首页 > english, jquery > jQuery 1.4新增的jQuery.contains()

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

本文链接: http://www.ajaxcn.net/archives/839

分类: english, jquery 标签:
一键分享到:新浪微博分享  分享到网易微博    转贴到开心网  推荐到豆瓣  分享到QQ空间    RSS订阅
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.