首页 > 其他 > 详细

Interactive Messager

时间:2015-04-17 17:32:28      阅读:150      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Interactive Messager - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../demo.css">
    <script type="text/javascript" src="../../jquery.min.js"></script>
    <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
    <h2>Interactive Messager</h2>
    <p>Click on each button to display interactive message box.</p>
    <div style="margin:20px 0;">
        <a href="#" class="easyui-linkbutton" onclick="confirm1();">Confirm</a>
        <a href="#" class="easyui-linkbutton" onclick="prompt1()">Prompt</a>
    </div>
    <script>
        function confirm1(){
            $.messager.confirm(My Title, Are you confirm this?, function(r){
                if (r){
                    alert(confirmed: +r);
                }
            });
        }
        function prompt1(){
            $.messager.prompt(My Title, Please type something, function(r){
                if (r){
                    alert(you type: +r);
                }
            });
        }
    </script>
</body>
</html>

 

Interactive Messager

原文:http://www.cnblogs.com/azhqiang/p/4435332.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!