调取easyui -windows 返回值问题

 

//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div id="win" class="easyui-window" title="Basic Window" data-options="iconCls:'icon-save',onBeforeClose:function(){
       alert(iframeName.window.MySearchEmployee.getData()[0].RealName);
    }"
        style=" 500px; height: 200px; padding: 10px;">
        <iframe id="iframeName" name="iframeName" height="100%" border="0" width="100%" src="../SearchEmployee/SearchEmployeeList?choose=M"></iframe>
    </div>

//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   <td class="content_form">
            <input style=" 100%" type="text" onclick="$('#win').window('open');" class="txt" datacol="yes" checkexpression="Num"
                err="用户名" />
        </td>

 //--------------------------------

 query: function () {
            parent.window.$("#win").window("close");
        },

原文地址:https://www.cnblogs.com/dullbaby/p/3580919.html