利用sort函数排序;
var div = $('.media').toArray().sort(function(a,b){

return parseInt($(a).find('.info .price .number-font').text()) - parseInt($(b).find('.info .price .number-font').text())

});
$(div).appendTo('.content_body')

相关文章:

  • 2021-06-23
  • 2022-12-23
  • 2021-07-04
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-02
  • 2021-11-14
  • 2022-01-09
相关资源
相似解决方案