-
Notifications
You must be signed in to change notification settings - Fork 0
/
w_alert.html
57 lines (53 loc) · 2.45 KB
/
w_alert.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<script type="text/javascript">
function testConfirmMsg(url, data){
alertMsg.confirm("您修改的资料未保存,请选择保存或关闭!", {
okCall: function(){
$.post(url, data, DWZ.ajaxDone, "json");
}
});
}
</script>
<h2 class="contentTitle">提示对话框演示</h2>
<div class="card">
<div class="tabs">
<div class="tabsHeader">
<div class="tabsHeaderContent">
<ul>
<li class="selected"><a href="javascript:;">示例</a></li>
<li><a href="javascript:;">代码</a></li>
</ul>
</div>
</div>
<div class="tabsContent" layoutH="100">
<div>
<div class="pageFormContent">
<a class="button" href="javascript:;" onclick="testConfirmMsg('demo/common/ajaxDone.html')">确认(是/否)</a><br /><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.error('您提交的数据有误,请检查后重新提交!')">错误提示</a><br /><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.info('您提交的数据有误,请检查后重新提交!')">信息提示</a><br /><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.warn('您提交的数据有误,请检查后重新提交!')">警告提示</a><br /><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.correct('您的数据提交成功!')">成功提示</a><br /><br />
</div>
</div>
<div>
<div class="pageFormContent">
<textarea name="textarea" cols="100" rows="15">
<script type="text/javascript">
function testConfirmMsg(url, data){
alertMsg.confirm("您修改的资料未保存,请选择保存或关闭!", {
okCall: function(){
$.post(url, data, DWZ.ajaxDone, "json");
}
});
}
</script>
<a class="button" href="javascript:;" onclick="testConfirmMsg('demo/common/ajaxDone.html')">确认(是/否)</a><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.error('您提交的数据有误,请检查后重新提交!')">错误提示</a><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.info('您提交的数据有误,请检查后重新提交!')">信息提示</a><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.warn('您提交的数据有误,请检查后重新提交!')">警告提示</a><br /><br />
<a class="button" href="javascript:;" onclick="alertMsg.correct('您的数据提交成功!')">成功提示</a><br /><br />
</textarea>
</div>
</div>
</div>
</div>
</div>