<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 功能強大 支持多語言、二開方便! 廣告
                # 私有成員和特權方法 <br> >[success]**成員:對象的屬性和方法** ????實例成員:實例對象的屬性和方法?name\\age?|?showName\\showClass ????靜態成員:構造函數自己的屬性和方法?info ????原型成員:構造函數對應的原型對象的屬性和方法?des ????私有成員:在構造函數中聲明的變量和函數,因為我們只能在函數內部訪問, ????所以是私有的?className?getClassName ????特權方法:在函數內部使用了私有成員的實例方法被稱為是特權方法?showClass ```javascript functionPerson(name,?age){ varclassName ="H5";//私有成員 this.name =name; this.age =age; this.showName =function(){ console.log(this.name); }; functiongetClassName(){ returnclassName; } this.showClass =function(){//特權方法 console.log("姓名:",this.name,"班級:",getClassName()); } } Person.prototype.des? ="H5-JS面向對象";//原型成員 ????Person.info? ="H5?Information";//靜態成員 ```
                  <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>

                              哎呀哎呀视频在线观看