javaxiaoxin
<script type="text/javascript">
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/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script> <script type="text/javascript" src="${pageContext.request.contextPath }/js/easyui/jquery.easyui.min.js"></script> <script type="text/javascript" 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/javascript" src="${pageContext.request.contextPath }/js/ztree/jquery.ztree.all-3.5.js"></script> </head> <body> <input type="button" id="btn" value="点我"> <script type="text/javascript"> $(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:true,validType:\'length[3,6]\'" type="text" name="username"> 密码:<input type="text" class="easyui-validatebox" data-options="required:true" name="pwd"> <br> <input id="submit1" value="提交" type="button"> <!-- <input type="submit" value="提交"> --> </form> </div> </body> </html>

 

分类:

技术点:

相关文章:

  • 2021-02-28
  • 2021-09-25
  • 2021-08-07
  • 2021-11-16
  • 2021-09-20
  • 2021-12-22
猜你喜欢
  • 2021-11-02
  • 2021-06-13
  • 2021-09-17
  • 2021-08-07
  • 2021-09-17
  • 2021-12-14
  • 2021-09-17
相关资源
相似解决方案