/**
* 在這個頁面被加載的時候,把分頁的請求的url放入到jquery的緩存中,把數據緩存到整個table中
* 一個頁面上就一個table
* flag是input框自定義寫法,'zhub_sy',param作用與那麼作用相似,從後臺獲取page屬性
*///給主表的分頁的首頁添加一個click事件
$("input[flag='zhub_sy']").click(function(){
// $(this).attr("param") 當前頁碼
document.getElementById("pageNo").value = $(this).attr("param");
document.forms[0].submit();
});
$("input[flag='zhub_syy']").click(function(){
document.getElementById("pageNo").value = $(this).attr("param");
if($(this).attr("param")=="0"){
alert("已經是第一頁了");
}else{
document.forms[0].submit();
}
});
$("input[flag='zhub_xyy']").click(function(){
var zhubid = $("tr[field='item_zhib']").attr("id");
document.getElementById("pageNo").value = $(this).attr("param");
//document.forms[0].action = $("#wrap").data("url")+zhubid;
document.forms[0].submit();
});
$("input[flag='zhub_wy']").click(function(){
document.getElementById("pageNo").value = $(this).attr("param");
document.forms[0].submit();
});
}