判断父类的窗体是否有cw方法,如果有就调用cw方法关闭。
if(window.parent.cw){
window.parent.cw();}else{
window.parent.close();
}
其中引用了插件<script type="text/javascript" src="${ctx}/js/thdJs/Win.js"></script>
function ow(t,u,w,h,hasBton){
Thd.Win.openWin({
title : t,//标题
url : u,//地址
width:parseFloat(w),//宽
height:parseFloat(h),//高
overflow:"hidden",//溢出隐藏
hasBton : hasBton//是否需要 确定 取消 按钮
});
}
function cw(){
Thd.Win.closeWin();
}