zoukankan      html  css  js  c++  java
  • EasyUi中对话框。

    html页面代码:

    <head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <link href="EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="css/admin.css" rel="stylesheet" />
    <script src="EasyUI/jquery.min.js"></script>
    <script src="EasyUI/jquery.easyui.min.js"></script>
    <script src="EasyUI/locale/easyui-lang-zh_CN.js"></script>
    </head>
    
    
    
    <div style="padding: 5px; margin-left: 100px;">
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">提交</a>
    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">清除</a>
    </div>
    
    
       
     <div id="dlg" class="easyui-dialog" title="提示..." style=" 250px; height: 120px; padding: 10px"
            data-options="
                    iconCls: 'icon-save',
                    buttons: [{
                        text:'Ok',
                        iconCls:'icon-ok',
                        handler:function(){
                            alert('ok');
                        }
                    },{
                        text:'Cancel',
                        handler:function(){
                            alert('cancel');;
                        }
                    }]
                ">
            确认提交吗?
        </div>

    JS:

     <script>
            $(function () {
                $('#dlg').dialog('close')
            })
            function submitForm() {
                $('#dlg').dialog('open')
                //$('#ff').form('submit');
            }
            function clearForm() {
                $('#ff').form('clear');
            }
        </script>

     效果图:

  • 相关阅读:
    mybatis的分页插件pagehelper的使用
    SSM框架中添加事务
    junit测试,spring中使用
    maven的聚合和继承,maven的依赖
    shiro的角色和权限
    tomcat配置虚拟文件路径
    通过HttpServletRequest的request获取各种路径
    shiro学习一
    JDBC
    GUI
  • 原文地址:https://www.cnblogs.com/longdb/p/7581656.html
Copyright © 2011-2022 走看看