• jQuery Mobile对话框插件


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8" />
            <meta name="viewport" content="width=device-width, initial-scale=1" />


            <link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> 

           <link rel="stylesheet" type="text/css" href="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.css" />

            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
            <script src="https://ajax.aspnetcdn.com/ajax/jquery.mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> 
            <script type="text/javascript" src="http://dev.jtsage.com/cdn/simpledialog/latest/jquery.mobile.simpledialog.min.js"></script>
            <script type="text/javascript">
     $(document).delegate(
    '#dialoglink''click'function() {
                    $(
    this).simpledialog({
                        
    'mode''blank',
                        
    'prompt'false,
                        
    'forceInput'false,
                        
    'useModal'true,
                        
    'fullHTML':
                        
    "<ul data-role='listview'><li>Some</li><li>List</li><li>Items</li></ul><a rel='close' data-role='button' href='#' id='simpleclose'>Close</a>"
                    })
                });

            
    </script>
        </head>

     

    <body>

     <div data-role="content" style="padding: 15px">
    <href="#" id="dialoglink" data-role="button">Open Dialog</a>

    </div>

    </body>

    </html>
  • 相关阅读:
    ceph部署与问题
    openstack常见问题汇总
    css
    html
    zookeeper
    ZAB协议
    快速排序
    Servlet梳理
    tomcat性能优化梳理
    tomcat梳理
  • 原文地址:https://www.cnblogs.com/habin/p/2600527.html
Copyright © 2020-2023  润新知