zoukankan      html  css  js  c++  java
  • MUI下拉刷新

    <!DOCTYPE html>
    <html>
    
        <head>
            <meta charset="gbk">
            <title>Hello MUI</title>
            <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
            <meta name="apple-mobile-web-app-capable" content="yes">
            <meta name="apple-mobile-web-app-status-bar-style" content="black">
            <link rel="stylesheet" href="../css/mui.min.css">
            <style>
                html,
                body {
                    background-color: #efeff4;
                }
                .title {
                    padding: 20px 15px 10px;
                    color: #6d6d72;
                    font-size: 15px;
                    background-color: #fff;
                }
            </style>
        </head>
    
        <body>
            <div id="pullrefresh" class="mui-content mui-scroll-wrapper">
                <div class="mui-scroll">
                    <div class="title">
                        这是webview模式选项卡中的第2个子页面,该页面展示一个支持下拉刷新、上拉加载的消息列表
                    </div>
                    <ul class="mui-table-view mui-table-view-chevron">
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 1</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 2</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 3</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 4</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 5</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 6</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 7</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 8</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 9</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 10</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 11</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 12</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 13</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 14</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 15</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 16</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 17</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 18</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 19</a>
                        </li>
                        <li class="mui-table-view-cell"><a href="" class="mui-navigate-right">Item 20</a>
                        </li>
                    </ul>
                </div>
            </div>
            <script src="../js/mui.min.js"></script>
            <script>
                mui.init({  
                  pullRefresh: {  
                      container: '#pullrefresh',  
                      down: {  
                          callback: pulldownRefresh  
                      },  
                  }  
              }); 
              /** 
               * 下拉刷新具体业务实现 
               */  
              function pulldownRefresh() {  
                  setTimeout(function () {  
                      //Ajax();//实现更新页面的操作  
                      alert(1);
                      mui('#pullrefresh').pullRefresh().endPulldownToRefresh(); //refresh completed  
                  }, 1500);  
              } 
            </script>
        </body>
    </html>
  • 相关阅读:
    基于NIO的同步非阻塞编程完整案例,客户端发送请求,服务端获取数据并返回给客户端数据,客户端获取返回数据
    NIO编程中buffer对象的理解以及API的使用
    使用简单工厂模式写一个简单的计算器!!!
    java数字转字符串前面自动补0或者其他数字
    jQuery Validate自定义金钱验证,是否为金额格式,保留两位小数,并支持千分制货币格式
    javade多任务处理之Executors框架(线程池)实现的内置几种方式与两种基本自定义方式
    【转】asp.net mvc webapi+angular.js案例
    【转】MVC5中的区域(Areas)
    【转】在ASP.NET MVC中,使用Bundle来打包压缩js和css
    scroll pagination.js数据重复加载、分页问题
  • 原文地址:https://www.cnblogs.com/hjptopshow/p/7686768.html
Copyright © 2011-2022 走看看