解决方案 »

  1.   

    1.  $('#win').window({   2.      width:600,   3.      height:400,   4.      modal:true  5.  });   6.  $('#win').window('close');  // close window  
      

  2.   

    用它的window插件官方上面列子好多
      

  3.   

    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="OpenFrame()">Open</a><div id="dd" title="My Dialog" style="width:400px;height:200px;"></div> 
            <script>
                function OpenFrame() {
                    $('#dd').append("<iframe src='http://www.163.com'></iframe>")                $('#dd').window({
                        width: 600,
                        height: 400,
                        modal: true
                    });            }
            </script>tle="My Dialog" style="width:400px;height:200px;"></div> 
    可以弹出,但是所有JS文件会出错,这是啥原因呀?
      

  4.   

        <form id="form1" runat="server">
    <h2>Basic Window</h2>
    <div class="demo-info">
    <div class="demo-tip icon-tip"></div>
    <div>Window can be dragged freely on screen.</div>
    </div>
    <div style="margin:10px 0;">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="OpenFrame()">Open</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#w').window('close')">Close</a>
    </div>
        <div id="dd" title="My Dialog"  class="easyui-window" title="My Window" closed="true" style="width:600px;height:480px;padding:5px;"></div> 
            <script>
                function OpenFrame() {
                    $('#dd').append("<iframe src='webform2.aspx'></iframe>");
                    $('#dd').window('open');            }
            </script>
        </form>