码迷,mamicode.com
首页 > Web开发 > 详细

jquery 临时存值

时间:2015-04-07 15:22:27      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:

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

jquery 临时存值

标签:

原文地址:http://www.cnblogs.com/xuehen/p/4398182.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!