中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

jquerymobile iscrollview

發布時間:2020-10-03 04:58:07 來源:網絡 閱讀:807 作者:antlove 欄目:web開發

iscrollview下載地址:https://github.com/watusi/jquery-mobile-iscrollview

iscroll 下載地址:http://cubiq.org/iscroll-4

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <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">
    <title>Demo</title>

    <link rel="stylesheet" href="css/jquery.mobile.custom.structure.css"/>
    <link rel="stylesheet" href="css/jquery.mobile.custom.theme.css"/>
    <link rel="stylesheet" href="css/jquery.mobile.iscrollview-pull.css"/>
    <link rel="stylesheet" href="css/jquery.mobile.iscrollview.css"/>

    <script src="jslib/jquery-1.9.0.js"></script>
     <script src="jslib/iscroll.js"></script>
    <script src="jslib/jquery.mobile.custom.js"></script>
   
    <script src="jslib/jquery.mobile.iscrollview.js"></script>
    
  </head>

  <body>
    <div data-role="page" id="iscrollPage" class="index-page">

      <div data-role="header" data-position="fixed" data-tap-toggle="false" data-transition="none" data-id="header">
        <h2>INDEX PAGE</h2>
      </div>

      <div data-role="content" class="example-wrapper" data-iscroll>
        <div class="iscroll-pulldown" >
          <span class="iscroll-pull-icon"></span>
          <span class="iscroll-pull-label" data-iscroll-pulled-text="刷新" data-iscroll-loading-text="刷新中"></span>
        </div>

        <ul data-role="listview">
          <li>Item 1</li>
          <li>Item 2</li>
        </ul>

        <div class="iscroll-pullup">
          <span class="iscroll-pull-icon"></span>
          <span class="iscroll-pull-label" data-iscroll-pulled-text="加載" data-iscroll-loading-text="加載中"></span>
        </div>
      </div>

      <div data-role="footer" data-position="fixed" data-tap-toggle="false" data-transition="none" data-id="footer">
        <h2>My Footer</h2>
      </div>

    </div>

    <script type="text/javascript">
        $(document).on("pageinit","#iscrollPage",function(){

            $(".iscroll-wrapper", this).bind( {
              "iscroll_onpulldown":function(){
                  console.log("pull down ...");

                  $("#iscrollPage [data-role=listview]").empty();

                  setTimeout("refreshList()",500);

              },
              "iscroll_onpullup":function(){
                  console.log("pull up ... ");
                  
                  setTimeout("refreshList()",500);
              },
              iscroll_onpulldownloading:function(){
                  console.log("iscroll_onpulldownloading ... ");
              },
              iscroll_onpulldownpulled:function(){
                  console.log("iscroll_onpulldownpulled ... ");
              },
              iscroll_onpulldownreset:function(){
                  console.log("iscroll_onpulldownreset ... ");
              }
            });
        });

        function refreshList(){
            $("#iscrollPage [data-role=listview]").append("<li>Item 1</li>");

            $("#iscrollPage [data-role=listview]").listview("refresh");
        }
    </script>
  </body>
</html>


附件:http://down.51cto.com/data/2366203
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

托克托县| 福泉市| 博湖县| 嘉祥县| 望城县| 通城县| 翁源县| 瓦房店市| 沧州市| 临沧市| 孝昌县| 喀喇沁旗| 精河县| 渝北区| 苏尼特左旗| 自治县| 玛沁县| 明水县| 大英县| 保定市| 泗洪县| 宣恩县| 勐海县| 榕江县| 鲁甸县| 合作市| 同仁县| 柯坪县| 玛多县| 湘潭市| 上栗县| 秦皇岛市| 都兰县| 乳山市| 太仓市| 西宁市| 德保县| 枞阳县| 仲巴县| 永春县| 定日县|