mvc控制器中怎么设置$messager.alert 弹出窗口
1个回答
2016-02-22
展开全部
、jQueryEasyUI Messager基本使用
1、$.messager.alert(title, msg, icon, fn)
1>、基本用法
代码:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>消息提示框</title>
<link href="/jquery-easyui-1.2.4/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="/jquery-easyui-1.2.4/themes/icon.css" rel="stylesheet" type="text/css" />
<script src="/jquery-easyui-1.2.4/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="/jquery-easyui-1.2.4/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/jquery-easyui-1.2.4/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$.messager.alert("操作提示", "操作成功!");
});
</script>
</head>
<body>
</body>
</html>
效果图:
2>、icon使用
icon四种设置:"error"、"info"、"question"、"warning"
效果:
<script type="text/javascript">
$(function () {
$.messager.alert("操作提示", "操作成功!","info");
});
</script>
1、$.messager.alert(title, msg, icon, fn)
1>、基本用法
代码:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>消息提示框</title>
<link href="/jquery-easyui-1.2.4/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="/jquery-easyui-1.2.4/themes/icon.css" rel="stylesheet" type="text/css" />
<script src="/jquery-easyui-1.2.4/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="/jquery-easyui-1.2.4/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/jquery-easyui-1.2.4/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$.messager.alert("操作提示", "操作成功!");
});
</script>
</head>
<body>
</body>
</html>
效果图:
2>、icon使用
icon四种设置:"error"、"info"、"question"、"warning"
效果:
<script type="text/javascript">
$(function () {
$.messager.alert("操作提示", "操作成功!","info");
});
</script>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询