<tfoot id='Uikji'></tfoot>
      <legend id='Uikji'><style id='Uikji'><dir id='Uikji'><q id='Uikji'></q></dir></style></legend>
      <i id='Uikji'><tr id='Uikji'><dt id='Uikji'><q id='Uikji'><span id='Uikji'><b id='Uikji'><form id='Uikji'><ins id='Uikji'></ins><ul id='Uikji'></ul><sub id='Uikji'></sub></form><legend id='Uikji'></legend><bdo id='Uikji'><pre id='Uikji'><center id='Uikji'></center></pre></bdo></b><th id='Uikji'></th></span></q></dt></tr></i><div id='Uikji'><tfoot id='Uikji'></tfoot><dl id='Uikji'><fieldset id='Uikji'></fieldset></dl></div>
    1. <small id='Uikji'></small><noframes id='Uikji'>

          <bdo id='Uikji'></bdo><ul id='Uikji'></ul>

        jQuery 推送堆栈

        jQuery pushStack(jQuery 推送堆栈)

        <i id='7PDBo'><tr id='7PDBo'><dt id='7PDBo'><q id='7PDBo'><span id='7PDBo'><b id='7PDBo'><form id='7PDBo'><ins id='7PDBo'></ins><ul id='7PDBo'></ul><sub id='7PDBo'></sub></form><legend id='7PDBo'></legend><bdo id='7PDBo'><pre id='7PDBo'><center id='7PDBo'></center></pre></bdo></b><th id='7PDBo'></th></span></q></dt></tr></i><div id='7PDBo'><tfoot id='7PDBo'></tfoot><dl id='7PDBo'><fieldset id='7PDBo'></fieldset></dl></div>

          <tfoot id='7PDBo'></tfoot>
        • <legend id='7PDBo'><style id='7PDBo'><dir id='7PDBo'><q id='7PDBo'></q></dir></style></legend>
                <tbody id='7PDBo'></tbody>
                <bdo id='7PDBo'></bdo><ul id='7PDBo'></ul>
              • <small id='7PDBo'></small><noframes id='7PDBo'>

                  本文介绍了jQuery 推送堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要一些帮助来理解 pushStack

                  I need some help to understand pushStack

                  这里我做了一个例子,使用与否的结果是一样的http://jsfiddle.net/Bz5n9/2/ 所以我想我真的不明白它的用途.

                  Here I've made an example where the results using it or not are the same http://jsfiddle.net/Bz5n9/2/ so I think i really didn't get what is it for.

                  谢谢!

                  推荐答案

                  您当前正在添加到集合中,将一个新集合推送到堆栈上,该集合已经是结果(您可以只返回 this.添加()).它所做的不是将 .b 元素作为新元素推送到堆栈上,而是推送带有 .b 元素 的新集合#2 <li> 你开始用的.

                  You're currently adding to the collection, pushing a new collection on the stack that's already the result (you could just return the result of this.add()). What this does is instead of pushing .b elements on the stack as a new element, it pushes a new set with .b elements and the #2 <li> you started with.

                  相反,您应该直接传递元素(没有 .add() 调用),像这样:

                  Instead, you instead should pass the elements directly (no .add() call), like this:

                  return this.pushStack(newCollection, "agregate", "");
                  

                  你可以在这里测试一下.

                  这篇关于jQuery 推送堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Toggle HTML radio button by clicking its label(通过单击标签来切换 HTML 单选按钮)
                  Javascript how to change radio button label text?(Javascript如何更改单选按钮标签文本?)
                  JavaScript radio button confirmation(JavaScript 单选按钮确认)
                  How can I automatically select specific radio buttons with Greasemonkey?(如何使用 Greasemonkey 自动选择特定的单选按钮?)
                  AngularJs. Is it possible to deselect HTML “radio” input by click?(AngularJs.是否可以通过单击取消选择 HTML“收音机输入?)
                  Checking Value of Radio Button Group via JavaScript?(通过 JavaScript 检查单选按钮组的值?)
                  • <bdo id='d9deB'></bdo><ul id='d9deB'></ul>
                  • <i id='d9deB'><tr id='d9deB'><dt id='d9deB'><q id='d9deB'><span id='d9deB'><b id='d9deB'><form id='d9deB'><ins id='d9deB'></ins><ul id='d9deB'></ul><sub id='d9deB'></sub></form><legend id='d9deB'></legend><bdo id='d9deB'><pre id='d9deB'><center id='d9deB'></center></pre></bdo></b><th id='d9deB'></th></span></q></dt></tr></i><div id='d9deB'><tfoot id='d9deB'></tfoot><dl id='d9deB'><fieldset id='d9deB'></fieldset></dl></div>

                          <tbody id='d9deB'></tbody>

                        <tfoot id='d9deB'></tfoot>
                        <legend id='d9deB'><style id='d9deB'><dir id='d9deB'><q id='d9deB'></q></dir></style></legend>
                        1. <small id='d9deB'></small><noframes id='d9deB'>