<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 功能強大 支持多語言、二開方便! 廣告
                # 1、創建對象 JS中要得到一個對象有很多種方式,今天學習的是直接量語法得到對象。 語法: ``` var obj = {}; //空對象 var obj = {成員名:值, 成員名:值}; var obj = { 成員名:值, 成員名:值 }; ``` > 注釋:值可以是數字型、字符串型等基本數據類型,也可以是數組或其他對象,還可以是函數。 ![](https://img.kancloud.cn/4e/a6/4ea69cedfec4039d1f1b8807b1b2a5b4_1083x439.png) # 2、獲取對象的成員 ![](https://img.kancloud.cn/0d/84/0d8420adc0b7da12981bf30a779ab8e4_797x497.png) > 對象內部的this:理解它,對比php中的$this即可。 ![](https://img.kancloud.cn/d4/d3/d4d389402b061e14ad0bdefdc9d5a61b_889x317.png) # 3、判斷對象中的成員 用 in 判斷對象中是否存在某個成員。 ![](https://img.kancloud.cn/ed/a4/eda43b458148379404f1d5153c52c061_863x408.png) # 4、添加對象的成員 ![](https://img.kancloud.cn/2f/0a/2f0a87b4f18d33ede03d1e52165722e3_795x508.png) # 5、刪除對象的成員 使用delete關鍵字來刪除對象的成員。 ![](https://img.kancloud.cn/72/ab/72abb21aaa37152e2b472cd65f1df142_754x536.png)
                  <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>

                              哎呀哎呀视频在线观看