<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智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ~~~ /* * 在JS中用 單引號/雙引號/反引號 包起來的都是字符串 * * 把其它數據類型轉換為字符串類型 * + String([value]) * + [value].toString() * 普通對象轉換為字符串都是 "[object Object]",數組對象轉換為字符串是 "第一項,第二項..."(逗號分隔數組中的每一項) * * 在JS中常用的數學運算 * 數學運算:+ - * / 加減乘除 * %(模)取余數 * 除了加法以外,其余的情況都是數學運算(如果遇到非數字類型,需要基于Number把其強制轉換為數字類型,然后在進行運算的); 加號在JS中既有數學運算,也有字符串拼接的意思(只要加號兩邊的任意一邊出現字符串,則變為字符串拼接); */ console.log(3 - "3px"); //=>NaN console.log(3 + "3px"); //=>"33px" 字符串拼接 console.log(1 + "1"); //=>"11" 字符串拼接 console.log(1 + {}); //=>"1[object Object]" 在把{}轉換為數字過程中,先把他轉換為字符串"[object Object]",此時右側出現了字符串,則不再是數學運算,而是字符串拼接了 console.log(1 + []); //=>'1' console.log([10] + true); //=>"10true" 在轉換[10]到數字的過程中,先把其轉換為字符串"10",此時操作變為字符串拼接(和數學運算沒關系了) console.log(true + [10]); //=>"true10" console.log(1 + true); //=>2 console.log(4 / 2); //=>除 2 console.log(7 / 3); //=>除 2.3333333333333335 console.log(7 % 3); //=>取余 1 console.log(10 - null); //=>10 console.log(3 * undefined); //=>NaN console.log(true - "12"); //=>1-12 =>-11 console.log(100 + true + 21.2 + null + undefined + "Tencent" + [] + null + 9 + false); /* 100 + true => 101 101 + 21.2 => 122.2 122.2 + null => 122.2 122.2 + undefined => NaN NaN + "Tencent" => "NaNTencent" 字符串拼接(以后都是字符串拼接) "NaNTencent" + [] => "NaNTencent" "NaNTencent" + null => "NaNTencentnull" "NaNTencentnull" + 9 => "NaNTencentnull9" "NaNTencentnull9" + false => "NaNTencentnull9false" */ ~~~ 1. ![](https://img.kancloud.cn/47/51/4751c533a48cafa81a4d742ebf07c34f_308x348.png) 2. ![](https://img.kancloud.cn/4b/9e/4b9e03dab95272d3b83a262b910b292e_177x110.png) 3. ![](https://img.kancloud.cn/86/95/8695f0021833f321af1a266ec94c00c9_348x62.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>

                              哎呀哎呀视频在线观看