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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] ## 1.基本數據類型 ### 不可改變的原始值(棧數據) - number - string - boolean - undefined - null ### 引用值(堆數據) * array * object * function ### 1.1typeof操作符可以判斷數據類型 ~~~ var a = 20; var str = "hello"; var c = true; console.log(typeof a); console.log(typeof str); console.log(typeof c); ~~~ ## 2.引用類型 - Array - Function - JSON對象 ### 2.1 Array `var arr = [1,2,3];` ### 2.2Function > Tip:函數只要調用之后才執行 ~~~ //語法 function funcName(){ //coding } ~~~ ~~~ function func(){ console.log("hello world"); } //函數只有調用才回執行 func(); ~~~ #### 箭頭函數 ~~~ var test = ()=>{ console.log("test"); } test(); ~~~ ### 2.3JSON對象 * 1.聲明一個JSON對象 ~~~ var chengchao ={ name : 'chengchao', age:18 } //name可以不寫雙引號,js自動補全 ~~~ * 2.讀取對象屬性的值 ~~~ //讀取對象的值 console.log(chengchao.name); console.log(chengchao["age"]) ~~~ > Tip:在es6中倘若,JSON對象的屬性名和值相同,可以簡寫 ~~~ var name="wangjuan"; var age=20; /* es5 */ var wangjuan={ name:name, age:age } /* e6中倘若對象的屬性名和值相同可以簡寫 */ var wang = { name, age } console.log(wang.age); ~~~
                  <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>

                              哎呀哎呀视频在线观看