@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<script src="~/Scripts/jquery-3.3.1.min.js"></script>
<script src="~/Scripts/jquery.easyui.min.js"></script>
<script src="~/Scripts/easyui-lang-zh_CN.js"></script>
<link href="~/Content/EasyUI/themes/icon.css" rel="stylesheet" />
<link href="~/Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
</head>
<body>
<h2>Basic Messager</h2>
<p>Click on each button to see a distinct message box.</p>
<div style="margin:20px 0;">
<a href="#" class="easyui-linkbutton" οnclick="show()">Show</a>
<a href="#" class="easyui-linkbutton" οnclick="slide()">Slide</a>
<a href="#" class="easyui-linkbutton" οnclick="fade()">Fade</a>
<a href="#" class="easyui-linkbutton" οnclick="progress()">Progress</a>
</div>
<script type="text/javascript">
function show() {
$.messager.show({
title: 'My Title',
msg: 'Message will be closed after 4 seconds.',
showType: 'show'
});
}
function slide() {
$.messager.show({
title: 'My Title',
msg: 'Message will be closed after 5 seconds.',
timeout: 5000,
showType: 'slide'
});
}
function fade() {
$.messager.show({
title: 'My Title',
msg: 'Message never be closed.',
timeout: 0,
showType: 'fade'
});
}
function progress() {
var win = $.messager.progress({
title: 'Please waiting',
msg: 'Loading data...'
});
setTimeout(function () {
$.messager.progress('close');
}, 5000)
}
</script>
</body>
</html>