TOP

easyui 菜单按钮&提示框(一)
2017-10-13 09:55:19 】 浏览:10030
Tags:easyui 菜单 按钮 提示

<script type="text/java script">
function updatePwd(){
    alert('修改密码');
}
</script>
</head>
<body>
<a class="easyui-menubutton" data-options="menu:'#mm',iconCls:'icon-help'">控制面板</a>
<div id="mm">
    <div on·click="updatePwd()">修改密码</div>
    <div>退出系统</div>
    <div class="menu-sep"></div>
    <div>关于系统</div>
</div>
</body>

 



















$(function(){
//     alert(1111);
//info  warning   question   error
//     $.messager.alert('提示标题','提示信息内容','error');

    /* $.messager.confirm('提示标题','提示信息内容',function(r){
        if(r){
            //执行目标操作
        }
    }); */
    
    $.messager.show({
        title:'标题',
        msg:'欢迎您【admin】',
        showType:'slide',
        timeout:3000
    })
})
</script>

 






















<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Insert title here</title> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/js/easyui/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/js/easyui/themes/icon.css"> <script type="text/java script" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script> <script type="text/java script" src="${pageContext.request.contextPath }/js/easyui/jquery.easyui.min.js"></script> <script type="text/java script" src="${pageContext.request.contextPath }/js/easyui/locale/easyui-lang-zh_CN.js"></script> <link rel="stylesheet" href="${pageContext.request.contextPath }/js/ztree/zTreeStyle.css" type="text/css"> <script type="text/java script" src="${pageContext.request.contextPath }/js/ztree/jquery.ztree.all-3.5.js"></script> </head> <body> <input type="button" id="btn" value="点我"> <script type="text/java script"> $(function(){ $("#btn").click(function(){ $("#myWindow").window('open'); }) $("#submit1").click(function(){ //调用Form表单方法:validate 表单校验 var r = $("#myForm").form('validate'); if(r){ $("#myForm").submit(); } }) }) </script> <div class="easyui-window" id="myWindow" data-options="collapsible:false,minimizable:false,maximizable:false,resizable:false,draggable:false" style="width: 600px;height: 300px" title="添加窗口"> <form id="myForm" action="xxx.action" method="post"> 用户名:<input class="easyui-validatebox" data-options="required:tru
easyui 菜单按钮&提示框(一) https://www.cppentry.com/bencandy.php?fid=76&id=156186

首页 上一页 1 2 下一页 尾页 1/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇easyui 菜单按钮&提示框 下一篇Java 垃圾回收算法