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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ~~~javascript 1.var fullName='language'; 2.var obj={ 3. fullName: 'javascript', 4. prop:{ 5. getFullName:function(){ 6. return this.fullName; 7. } 8. } 9.}; 10.console.log(obj.prop.getFullName()); 11.var test=obj.prop.getFullName; 12.console.log(test()); ~~~ ~~~javascript 1.var name='window'; 2.var Tom={ 3. name:"Tom", 4. show:function(){ 5. console.log(this.name); 6. }, 7. wait:function(){ 8. var fun=this.show; 9. fun(); 10. } 11.}; 12.Tom.wait(); ~~~ ~~~ /* * 1.元素綁定事件,方法中的this是當前操作的元素 * 2.方法名前面是否有點,有點,點前面是誰this就是誰,沒有this是window(嚴格模式下是undefined) * 3.構造函數執行,方法體中的this是當前類的一個實例 * * 你以為你以為的就是你以為的 */ /* var fullName = 'language'; var obj = { fullName: 'javascript', prop: { getFullName: function () { return this.fullName; } } }; console.log(obj.prop.getFullName());//=>this:obj.prop =>obj.prop.fullName =>undefined var test = obj.prop.getFullName; console.log(test());//=>this:window =>window.fullName =>'language'*/ /* var name = 'window'; var Tom = { name: "Tom", show: function () { console.log(this.name); }, wait: function () { var fun = this.show;//=>Tom.show fun();//=>this:window =>window.name =>'window' } }; Tom.wait();//=>this:Tom */ ~~~ ![](https://img.kancloud.cn/dc/c5/dcc5a056c1145b5f7ec63d226c6c2660_544x245.png) ~~~javascript 1.function fun(){ 2. this.a=0; 3. this.b=function(){ 4. alert(this.a); 5. } 6.} 7.fun.prototype={ 8. b:function(){ 9. this.a=20; 10. alert(this.a); 11. }, 12. c:function(){ 13. this.a=30; 14. alert(this.a) 15. } 16.} 17.var my_fun=new fun(); 18.my_fun.b(); 19.my_fun.c(); ~~~
                  <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>

                              哎呀哎呀视频在线观看