Copy Code code as follows:
<script type= "Text/javascript" >
function pageindexchanged () {
var url = "/orderlist/lists";
var where = "";
@*location.href = "@this. Url.action ("List")? pageindex= "+ $ (" #pager "). Pager (" pageindex ") +" &pagesize= "+ $ (" #pager "). Pager (" pagesize ") +" &where= "+ Escape (where); *@
var pageindex = $ ("#pager"). Pager ("pageindex");
var pagesize = $ ("#pager"). Pager ("pagesize");
where = Escape (where);
$.getjson (URL, {where:where, Pageindex:pageindex, pagesize:pagesize}, function (data) {
alert (data.total);
Alert (data.rows[0). Order.orderid);
Alert (data. PageIndex);
Alert (data. PageSize);
});
}
$ (function () {
$ ("#order-details-search"). Click (function () {
$ (". Detail-search"). Show (100);
});
$ ("#detail_search_cancle"). Click (function () {
$ (". Detail-search"). Hide (100);
})
});
</script>