欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ajax $.getJSON案例詳解

 更新時(shí)間:2013年03月05日 14:54:30   作者:  
ajax中的$.getJSON方法想必大家非常熟悉吧,本文接下來(lái)將在為你鞏固一下,感興趣的你可以參考下,希望對(duì)你有所幫助
復(fù)制代碼 代碼如下:

<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>

相關(guān)文章

最新評(píng)論