<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                **這是Ext群里一位大蝦提供的解決方案。** 通常情況下,在窗口顯示時,也就是在窗口的show事件中,直接使用focus方法讓字段獲得焦點,會因為瀏覽器內部處理而丟失焦點。 解決辦法就是延遲執行focus,在API中,Ext.form.field.Base的focus方法的說明如下: [focus](http://localhost/ext4/docs/index.html#%21/api/Ext.Component-method-focus)( [[Boolean](http://localhost/ext4/docs/index.html#%21/api/Boolean) selectText], [[Boolean](http://localhost/ext4/docs/index.html#%21/api/Boolean)/[Number](http://localhost/ext4/docs/index.html#%21/api/Number) delay] ) : [Ext.Component](http://localhost/ext4/docs/index.html#%21/api/Ext.Component) Try to focus this component. ### Parameters - selectText : [Boolean](http://localhost/ext4/docs/index.html#%21/api/Boolean) (optional) If applicable, true to also select the text in this component - delay : [Boolean](http://localhost/ext4/docs/index.html#%21/api/Boolean)/[Number](http://localhost/ext4/docs/index.html#%21/api/Number) (optional) Delay the focus this number of milliseconds (true for 10 milliseconds). ### Returns - [Ext.Component](http://localhost/ext4/docs/index.html#%21/api/Ext.Component) The focused Component. Usually `this` Component. Some Containers maydelegate focus to a descendant Component ([Window](http://localhost/ext4/docs/index.html#%21/api/Ext.window.Window)s can do this through their[defaultFocus](http://localhost/ext4/docs/index.html#%21/api/Ext.window.Window-cfg-defaultFocus) config option. 方法帶兩個參數,第一個參數的作用是用來選中文本的,第二個參數就是延遲執行的時間,因而只要設置第二個參數,就可以實現效果了。 例如: form.findField("第一個字段名字").focus(false,100); 這句中的form表示的是Ext.form.Basic的實例。在focus方法,設置了延遲時間為100微秒,也就是在延遲100微秒后才將焦點轉移到第一個輸入字段,這樣可以很好的解決該問題。
                  <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>

                              哎呀哎呀视频在线观看