<div id="pagecontent"></div>
/**
* 全局变量
*/
var _fdnTmId = "";
var _deptId = "";
/**
* 载入页面
* 读取全局变量作为ajax调用的参数
*/
function loadPage(){
//置灰查询按钮
var ev = window.event;
//在IE下,event对象有srcElement属性,但是没有target属性;
//在Firefox下,even对象有target属性,但是没有srcElement属性.
//target:发生事件的节点
//srcElement:事件源,就是发生事件的元素。
var target = ev.target || ev.srcElement;
disableButton(jQuery(target));
//对参数赋值
var param = {'mode':"ajax",
'form.deptId': _deptId,
'form.fdnTmId': _fdnTmId
};
var pageconfig = {ajaxDataType:'html',
proxyUrl:'riskAssessment_query.do',
currentPage:_currPage,
perPage:_perPage,
ajaxParam:param,
barPosition:'bottom',
showMode:'full',
callback:function(perpage,reloadFn){
_perPage = perpage;
reload = reloadFn;
//恢复查询按钮可用
enableButton(jQuery(target)); }
};
$("#pagecontent").pagination(pageconfig);
}
/**
* 置灰查询按钮
*/
function disableButton(buttons){
buttons.each(function(){
jQuery(this).attr('disabled','true');
}
);
}
/**
* 恢复查询按钮可用
*/
function enableButton(buttons){
buttons.each(function(){
jQuery(this).attr('disabled','');
jQuery(this).mouseout();
}
);
}
或者
<body>
<%@include file="/jsp/include/jspName.jsp"%>
</body>
573

被折叠的 条评论
为什么被折叠?



