一些弄了很长很长时间的小问题总结

1.如何显示页面而不是窗体
1.1 显示窗体:

mini.open({
          targetWindow: window,
          url: GVAR.contextPath+"/jsp/dwgl/web/dwgl/dwgl_bl.jsp",
          title: '办理', width:1200,
          onload: function (){
              var iframe = this.getIFrameEl();
              var data = {"action":action,"id":dwsxh};
              iframe.contentWindow.dwglBtn.SetData(data);
          },
          ondestroy: function () {
          	  dwcxBtn.doQuery();
          }
      });	

1.2 显示页面:

//     var url = "dwgl!toBL.do?data=" + data;
//	var url = GVAR.contextPath+"/jsp/dwgl/web/dwgl/dwgl_bl.jsp?action="+action+"&id="+dwsxh;
//	window.open =url;

1.3 显示新的页面:window.location.href = url;无用

//调用
comm.goTo('1',dwsxh);
//goTo函数
var _Comm = function() {};
_Comm.prototype ={
	goTo : function(type,dwsxh) {
		var tab = '';
		if (type == '1') {
			// 审核办理
			tab = {
				'key' : '600103',
				'iconCls' : 'icon-collapse',
				'text' : "审核办理",
				'url' : '/jsp/dwgl/web/dwgl/dwgl_bl.jsp?action='+'dwbl'+"&id="+dwsxh
			};
		} else if (type == '2') {
			// 查看
			tab = {
				'key' : '600104',
				'iconCls' : 'icon-zoomout',
				'text' : "查看审核信息",
				'url' : '/jsp/dwgl/web/dwgl/dwgl_bl.jsp?action='+'view'+"&id="+dwsxh
			};
		}
		if (tab != '') {
			window.top.activeTab(tab); 	//window.parent.activeTab(tab);
		}
	}  
}
var comm = new _Comm();

2.如何隐藏一个div JQuery!!! 不用miniui,要熟练运用JQuery
$("a[name=submit]").hide();

提  交 
打  印

你可能感兴趣的:(前端)