<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國際加速解決方案。 廣告
                ~~~ //=>CALL APPLY 的作用 //1.改變函數中的THIS(并且讓函數執行) //2.可以基于CALL讓類數組借用數組原型上的方法(例如:借用SLICE實現把類數組轉換為數組) //3.可以基于CALL實現繼承 //4.可以基于APPLY獲取數組中的最大值和最小值 //... // let ary = [12, 23, 24, 35, 16]; //=>獲取數組中的最大值 //1.數組先排序,然后獲取第一個和最后一個就是最大最小值 // console.log(ary.sort((a, b) => b - a)[0]); //2.假設法:假設第一個是最大的,讓其和后面每一項進行比較,如果當前項大于假設的值,修改假設的值 // let max = ary[0]; // ary.slice(1).forEach(item => { // item > max ? max = item : null; // }); // console.log(max); //3.基于APPLY // console.log(Math.max.apply(null, ary)); //4.基于ES6的展開運算符 // console.log(Math.max(...ary)); //================ //34. 有兩個升序數組,然后將他們合為 一個數組并進行升序排序? // let ary1 = [1, 2, 3, 4, 5], // ary2 = [2, 3, 4, 5, 6]; // // let ary = ary1.concat(ary2).sort((a, b) => a - b); // let ary = [...ary1, ...ary2].sort((a, b) => a - b); // console.log(ary); //35. 瀑布流的實現原理 // 1.并排排列三列,三列沒有具體的高度,靠內容撐開 // 2.通過API接口地址,基于AJAX,從服務器端獲取數據,拿出數據的前三項依次插入到三列中(數據綁定) // 3.計算目前三列的高度,按照高度由小到大把三列進行排序,再次拿出獲取數據中的三條,按照排好序的LI依次插入......一直基于這個規律插入完成即可 // 4.當用戶下拉到頁面底部,加載更多的數據即可 38. 使用jquery實現點擊按鈕彈出一個對話框(對話框在整個頁面正中間,并且最初頁面中沒有任何的HTML標簽)? <!--<a href="javascript:;" id="link">點我啊</a>--> $(function () { /*//=>當頁面結構加載完成執行函數 $('#link').on('click', function () { $('<div class="center"></div>').appendTo(document.body); });*/ }); 38. 怎么避免全局變量的污染? 閉包或者單例模式 $('#nav>li>a').on('click', function (ev) { //=>this:當前點擊的A //=>$(this):當前點擊的A(JQ對象) //=>阻止點擊A標簽頁面跳轉的行為 ev.preventDefault(); //=>準備數據 let $this = $(this), $p = $this.parent(); let obj = { index: $p.index() + 1, name: $this.text(), link: $this.attr('href') }; console.log(obj); }); ~~~
                  <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>

                              哎呀哎呀视频在线观看