jQuery的9中构造函数

// 接受一个字符串,其中包含了用于匹配元素集合的 CSS 选择器

jQuery([selector,[context]])
// 传入单个 DOM
jQuery(element)
// 传入 DOM 数组
jQuery(elementArray)
// 传入 JS 对象
jQuery(object)
// 传入 jQuery 对象
jQuery(jQuery object)
// 传入原始 HTML 的字符串来创建 DOM 元素
jQuery(html,[ownerDocument])
jQuery(html,[attributes])
// 传入空参数
jQuery()
// 绑定一个在 DOM 文档载入完成后执行的函数
jQuery(callback)
posted @ 2016-11-24 16:57  Breeze_微风  Views(243)  Comments(0Edit  收藏  举报