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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## js實現繼承 第一種方法:被繼承的對象必須是object ~~~ //animal 是 object var animal = { type : "animal", runtype : "by foot", run : function(){ alert(this.type + " is runing by"+ this.runtype); } } // bird 是 function; var bird = function(){ }; //把 bird 的 prototype(原型) 賦值為 animal bird.prototype = animal; var xiaoming = new bird(); xiaoming.type = "xiaoming" xiaoming.runtype = "fly" xiaoming.run(); ~~~ * * * * * 第二種方法:被繼承對象必須是function ~~~ var animal = function(){ this.type = "animal"; this.runtype = "by foot"; this.run = function(){ alert(this.type + " is runing "+ this.runtype); } } var bird = function(){ animal.call(this);//用animal覆蓋bird,多繼承就多覆蓋幾次 //animal.apply(this);//與上面作用相同 this.type = "bird"; this.runtype = "by fly"; }; var xiaoming = new bird(); xiaoming.type = "xiaoming" xiaoming.runtype = "fly" xiaoming.run(); ~~~ apply與call的區別 ~~~ animal.call(this,arg1,arg2,arg3); animal.apply(this,array(arg1,arg2,arg3)); ~~~
                  <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>

                              哎呀哎呀视频在线观看