怎么用jquery.easyui 弹出层并且在这个弹出层里引入新页面

如题所述

第1个回答  2017-03-20
util.showEditDialog = function (url, title, width, height, func) {
    var content = '<iframe src="' + url + '" width="100%" height="99%" frameborder="0" scrolling="no"></iframe>';
    var divContent = '<div id="' + id + '">';
    var win = $('<div/>').dialog({
        content: content,
        width: width,
        height: height,
        modal: true,
        title: title,
        catch: false,
        //buttons: [{
        //    text: '确定',
        //    iconCls: 'icon-add',
        //    handler: function () {
        //        var d = $(this).closest('.window-body');
        //        // 执行操作后关闭。。。。。。
        //        d.dialog('destroy');
        //    }
        //}],
        onClose: function () {
            $(this).dialog('destroy');
        }
    });

    win.dialog('open');
}

本回答被提问者采纳
相似回答