messager对象方法使用
alert方法---提示框
(info默认是英文,如果需要是中文,需要引入:
<script type="text/javascript" src="${pageContext.request.contextPath }/js/easyui/locale/easyui-lang-zh_CN.js"></script>)
$.messager.alert("标题","内容","info");
confirm---确认框
$.messager.confirm("提示信息","你确定要删除当前记录吗?",function(r){
alert(r);
});
show方法---欢迎框
$.messager.show({
title:'欢迎信息',
msg:'欢迎【admin】登录系统!',
timeout:5000,
showType:'slide'
});
menubutton菜单使用
<body>
<!-- 制作菜单 -->
<a data-options="iconCls:'icon-help',menu:'#mm'" class="easyui-menubutton">控制面板</a>
<!-- 使用div元素制作下拉菜单 -->
<div id="mm">
<div>修改密码</div>
<div>联系管理员</div>
<div class="menu-sep"></div>
<div>退出系统</div>
</div>
</body>