jQuery:撤消订单 [英] jquery: reverse an order
本文介绍了jQuery:撤消订单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用jquery撤消订单?
How can I reverse an order with jquery?
我尝试过这样的建议,但它行不通!
I tried with the suggestion like this but it won't work!
$($(".block-item").get().reverse()).each(function() { /* ... */ });
此处.
我希望盒装像这样重新排列,
I want the boxed to be rearranged like this,
18
17
16
etc
谢谢.
推荐答案
如果您在列表中有一个容器,它会容易一些:
If you have a container around the list, it's a little easier:
$("#container").append($(".block-item").get().reverse());
这篇关于jQuery:撤消订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文