解决方法
Given a selector expression that represents a set of DOM elements,the
.nextUntil()
method searches through the successors of these elements in the DOM tree,stopping when it reaches an element matched by the method’s argument. The new jQuery object that is returned contains all following siblings up to but not including the one matched by the.nextUntil()
argument.If the selector is not matched or is not supplied,all following siblings will be selected; in these cases it selects the same elements as the
.nextAll()
method does when no filter selector is provided.As of jQuery 1.6,A DOM node or jQuery object,instead of a selector,may be passed to the
.nextUntil()
method.The method optionally accepts a selector expression for its second argument. If this argument is supplied,the elements will be filtered by testing whether they match it…
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。