jquery 临时存值

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());
}

posted @ 2015-04-07 14:05  萧雪痕  阅读(445)  评论(0编辑  收藏  举报