zoukankan      html  css  js  c++  java
  • 对话框dialog

    <!DOCTYPE html>
    <html>
    <head>
    <title>jQuery Easy UI</title>
    <meta charset="UTF-8" />
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/jquery.min.js"></script>
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/locale/easyui-lang-zh_CN.js" ></script>
    <link rel="stylesheet" type="text/css" href="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="C:/Users/秋萍/Desktop/easyui/jquery-easyui-1.5.1/themes/icon.css" />
    <script type="text/javascript">
        $(function(){
            $("#box1").dialog({
                title : "标题1",
                resizable : true,
                modal : true,
                width : 200,
                height : 300,
                toolbar : [{
                    text : "编辑",
                    iconCls :"icon-edit",
                    handler : function(){
                        alert("编辑");
                    }
                }],
                buttons : '#bb',
                /*buttons : [{
                    text : '保存',
                    iconCls :"icon-ok",
                    handler : function(){
                        alert("保存");
                    }
                }],*/
    
            });
            //返回
            console.log($("#box1").dialog("dialog"));
        });
    </script>
    </head>
    <body>
    <!--
    扩展自window组件
    -->
    
    <div id="box1">dsd</div>
    
    </body>
    </html>
  • 相关阅读:
    在ASP.NET GridView 中使用e.CommandArgument传递参数
    循环处理之while and do while
    MzTreeView(梅花雪)完全攻略
    FreeTextBox使用详解
    委托、线程的用法
    Master Theorem
    python jsonpath 语法总结
    python + zmail 邮件发送
    python的yaml语法
    unittest单元测试框架总结
  • 原文地址:https://www.cnblogs.com/m01qiuping/p/6502231.html
Copyright © 2011-2022 走看看