解决方案 »

  1.   

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>EasyUI Demo</title><link rel="stylesheet" type="text/css" href="../jquery/jquery-easyui-1.3.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../jquery/jquery-easyui-1.3.3/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../jquery/jquery-easyui-1.3.3/demo/demo.css">
    <script type="text/javascript" src="../jquery/jquery-1.10.0.min.js"></script>
    <script type="text/javascript" src="../jquery/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../jquery/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>  <script type="text/javascript">
    $(function(){$('#cityTree').dialog("open");
    $('#dd').dialog({
    toolbar:[{ text:'Edit', iconCls:'icon-edit', handler:function(){alert('edit')} },{ text:'Help', iconCls:'icon-help', handler:function(){alert('help')}}],
      title: '请选择城市', 
    width: 300, 
    height:200, 
    closed: true, 
    cache: false, 
    modal: true
    });$('#dd2').dialog({
    toolbar:[{ text:'Edit', iconCls:'icon-edit', handler:function(){alert('edit')} },{ text:'Help', iconCls:'icon-help', handler:function(){alert('help')}}],
      title: '请选择城市', 
    width: 300, 
    height:200, 
    closed: true, 
    cache: false, 
    modal: true
    });$('#dd2').dialog("open");
    $('#dd').dialog("open");
    })
     </script></head>
    <body>
    <div id="dd">
    <div id="dd2">
    </div></div>
    <!--   创建对话框通过标记从现有的DOM节点 -->
      
    </body>
    </html>
      

  2.   

    我试了可以啊  你是封装了吧   你的两个弹出层 用的同一个DIV元素吧
      

  3.   

    解决了。哈哈。。
    去掉close
    然后在最后加一句 
    return false;俺每次都忘了加这一句。很烦。哎。。