function toSort(orderBy) {
if (orderBy == $('#orderBy').data("order")) {// 再次点击同一个排序时
$('#orderBy').data("ascDesc",
"asc" == $('#orderBy').data("ascDesc") ? "desc" : "asc");
} else {
$('#orderBy').data("ascDesc", "asc");// 默认升序
}
$('#orderBy').data("order", orderBy);//将查询字段赋值给orderby的order属性
$('#orderBy').val(
$('#orderBy').data("order") + " " + $('#orderBy').data("ascDesc"));//拼接字段,传给后台查询用
bigpage1.search($("#searchForm").serializeJson());
bigpage2.search($("#searchForm").serializeJson());
}

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-08-23
  • 2021-11-14
  • 2022-02-18
  • 2021-07-01
  • 2021-07-06
  • 2021-08-08
猜你喜欢
  • 2021-12-31
  • 2022-02-23
  • 2021-06-14
  • 2021-07-08
  • 2021-11-29
  • 2021-06-26
  • 2021-05-30
相关资源
相似解决方案