<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          前端每日一題#08

          共 1652字,需瀏覽 4分鐘

           ·

          2021-03-05 12:03


          關注公眾號 前端人,回復“加群

          添加無廣告優(yōu)質學習群

          昨日前端每日一題#07

          請選擇下列代碼的輸出結果( )?

          Function.prototype.before=function(beforeFn{
            return () => {
                beforeFn.apply(thisarguments)
                return this.apply(thisarguments)
            }
          }
           Function.prototype.after=function(afterFn){
            return () => {
                var ret = this.apply(thisarguments)
                afterFn.apply(thisarguments)
                return ret
            } 
           }
           
           func = function({
               console.log(2)
           }.before(function(){
               console.log(1)
           }).after(function(){
               console.log(3)
           })

          func()

          A、2,1,3

          B、1,2,3

          C、2,3,1

          答案:B

          今日題目

          請選擇下列代碼的輸出結果( )

          var a = 1;
          function Fn1({
            var a = 2;
            console.log(this.a + a);
          }

          function Fn2({
            var a = 10;
            Fn1();
          }
          Fn2();

          var Fn3 = function ({
            this.a = 3;
          };

          Fn3.prototype = {
            a4,
          };

          var fn3 = new Fn3();
          Fn1.call(fn3);

          A.錯誤

          B.3,3

          C.2,10

          D.3,5

          玩法介紹

          評論區(qū)給出你的答案,并且?guī)兔c個在看每天的每日一題答案由下一天給出,歡迎參與每日一題,一周連續(xù)答對5題者,周六鬼哥抽取送愛奇藝會員一個

          題庫小程序


          • 回復資料包領取我整理的進階資料包
          • 回復加群,加入前端進階群
          • console.log("點贊===看===你我都快樂")
          • Bug離我更遠了,下班離我更近了
          瀏覽 49
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  欧美一区在线成人 | 天天射天天干天天日 | 国产成人激情视频 | 亚洲丁香花在线 | 久久久精品麻豆 |