Ext js封装面板和按钮
js(一):
var addInfoSet=new Ext.Button({text:'新增,cls:"tt",iconCls:"add_ry",handler:addInfo});
$(document).ready(function(){
var vpt = new Ext.Panel({
layout:'border',renderTo:Ext.getBody(),height:Ext.getBody().getHeight(),
items:[{region:"center",//
border:false,
contentEl:"content",//content为页面div的id
autoScroll: true
}],
tbar:[addInfoSet]
});
});
function addInfo(){
var result = window.showModalDialog("新增页面路径", str, "dialogHeight:300px;dialogWidth:600px;");
if(result == 'success'){
window.location.reload();
}else if(result=='fail'){
alert("创建失败");
}
注:str为要传递的参数
js(二):
$(document).ready(function(){
var vpt = new Ext.Panel({
layout:'border',height:Ext.getBody().getHeight(),region:"center",
items:[{region:"center",
title:"名册详细",
border:false,
contentEl:"content",
autoScroll: true
}],
bbar:[{text:'审核',handler:bhZjmc},'-',{text:'保存数据',handler:saveMcsh},'-',{text:'驳回',handler:reInfo}]
});
});
function saveMcsh(){
};
function bhZjmc(){
};
function through(id){
$("#zjContent").attr("src",'${base}/business/zjgl/mcshSelList.do?zjglInfoBean.ZJ_DW_CODE='+id);
};
function reInfo(){
};
jsp:
Ext js封装面板和按钮
最新推荐文章于 2023-11-28 22:57:36 发布