Easyui入门视频教程 第10集---Messager的使用
Easyui入门视频教程 第10集---Messager的使用
<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>
下面的这种是 alert 弹出信息
<script> function alert1(){ $.messager.alert('My Title','Here is a message!'); } function alert2(){ $.messager.alert('My Title','Here is a error message!','error'); } function alert3(){ $.messager.alert('My Title','Here is a info message!','info'); } function alert4(){ $.messager.alert('My Title','Here is a question message!','question'); } function alert5(){ $.messager.alert('My Title','Here is a warning message!','warning'); } </script>