开发者社区 问答 正文

easyui 父窗口向子窗口传值

function selectq(){
                var row = $dg.datagrid('getSelected');
                if (row) {
                    parent.$.modalDialog({
                        title : '新闻详情页面',
                        width : 800,
                        height : 600,
                        href : "<span></span>jsp/news/newsDetail.jsp<span></span>",
                        onLoad:function(){
                            var f = parent.$.modalDialog.handler.find("#content");
                            f.form("load", row);
                        },          
                        buttons : [ {
                        text : '返回,
                        iconCls : 'icon-ok',
                        handler : function() {
                        parent.$.modalDialog.openner= $grid;
                        var f = parent.$.modalDialog.handler.find("#content");
                        f.submit();
                            }
                        }
                    }

展开
收起
a123456678 2016-07-13 17:18:47 3149 分享 版权
1 条回答
写回答
取消 提交回答
问答分类:
问答地址: