jQuery pushStack () method
Examples
JQuery stack to be pressed into some of the elements, and then delete them, and then just pushed onto the stack and then passed back to the previous state.
<Div> </ div> < script> $ (function () {$ (). PushStack ( .. document getElementsByTagName ( "div" )) remove () end ();.}) </ script>
Try >>
Definition and Usage
pushStack () function is used to a set of DOM elements added to the jQuery stack.
grammar
Use a
pushStack( elements, name, arguments )
参数 | 描述 |
---|---|
element | Array类型 将要压入 jQuery 栈的数组元素,用于生成一个新的 jQuery 对象 |
name | 可选。 String类型 生成数组元素的 jQuery 方法名 |
arguments | 可选。 Array类型 传递给 Query 方法的参数(用于序列化) |