<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 自定義事件 ## Custom events iScroll還提供額一些你可以掛靠的有用的自定義事件。 使用`on(type, fn)`方法注冊事件。 ~~~ myScroll = new IScroll('#wrapper'); myScroll.on('scrollEnd', doSomething); ~~~ 上面的代碼會在每次滾動停止是執行`doSomething`方法。 可以掛靠的事件如下: * **beforeScrollStart**,在用戶觸摸屏幕但還沒有開始滾動時觸發。 * **scrollCancel**,滾動初始化完成,但沒有執行。 * **scrollStart**,開始滾動 * **scroll**,內容滾動時觸發,只有在`scroll-probe.js`版本中有效,請參考[onScroll event](https://iiunknown.gitbooks.io/iscroll-5-api-cn/content/customevents.html#onscroll)。 * **scrollEnd**,停止滾動時觸發。 * **flick**,用戶打開左/右。 * **zoomStart**,開始縮放。 * **zoomEnd**,縮放結束。 ## onScroll事件 The?`scroll`?event is available on?**iScroll probe edition**?only (`iscroll-probe.js`). The probe behavior can be altered through the?`probeType`?option.?`scroll`事件在**iScroll probe edition**版本中有效(僅包含在`iscroll-probe.js`腳本文件中)。可以通過改變`probeType`選項值來改變`scroll`事件的觸發時機。 ### options.probeType 這個屬性是調節在`scroll`事件觸發中探針的活躍度或者頻率。有效值有:`1`,?`2`,?`3`。數值越高表示更活躍的探測。探針活躍度越高對CPU的影響就越大。 `probeType: 1`?對性能沒有影響。`scroll`事件只有在滾動條不繁忙的時候觸發。?`probeType: 2`?除了在勢能和反彈范圍內,將在`scroll`事件周期內一直執行。這類似于原生的`onScroll`事件。 `probeType: 3`?像素級的觸發`scroll`事件。注意,此時滾動只關注`requestAnimationFrame`(即:`useTransition:false`). 請參考?[probe demo](http://lab.cubiq.org/iscroll5/demos/probe/).
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看