For example, I have a code:
name price 3条回答 佛祖请我去吃肉 (楼主) 2021-01-13 17:31 Instead of return 1 * $(a).find('.sort').text() < 1 * $(b).find('.sort').text() ? 1 : 0; insert return 1 * $(a).find('.sort').text() < 1 * $(b).find('.price').text() ? 0 : 1; http://jsfiddle.net/E56j8/ 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Instead of
return 1 * $(a).find('.sort').text() < 1 * $(b).find('.sort').text() ? 1 : 0;
insert
return 1 * $(a).find('.sort').text() < 1 * $(b).find('.price').text() ? 0 : 1;
http://jsfiddle.net/E56j8/