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

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                * 字符串字面量 **注意:** 1.可以使用**''(單引號-推薦)**和""(雙引號) 2. **轉義符:** | 字面量 | 含義 | | --- | --- | | \n | 換行 | | \t | 制表(tab鍵) | | \b | 空格 | | \r | 回車 | | \f | 進紙 | | \\\ | 斜杠 | | \\' | 單引號(') | | \\" | 雙引號(") | | \xnn | 以十六進制代碼nn表示的一個字符(其中n為0~F)。例如:\x41表示 "A" | | \unnnn | 以十六進制代碼nnnn表示Unicode字符(其中n為0~F)。例如:\u03a3表示希臘字符 Σ 練習: 1.輸出:你好嗎 2.輸出:原則上"自愿,'就是'必須" 3.輸出:如果努力沒有效果, 那努力就絲毫不值得炫耀 ``` ~~~ var msg1 = '你好嗎'; var msg2 = '原則上\"自愿,\'就是\'必須\"'; var msg3 = '如果努力沒有效果,\n那努力就絲毫不值得炫耀'; console.log(msg1); console.log(msg2); console.log(msg3); ~~~ ``` 效果:![](https://img.kancloud.cn/8c/8d/8c8dedd563d7a11dd05e8d15c155b8fa_601x106.png) **字符串的長度:** ``` length獲取字符串的長度 var msg = '原則上自愿,就是必須'; console.log(msg.length); ``` **字符串的拼接:** ``` var str1 = 'abc'; var str2 = 'def'; str3 = str1 + str2; console.log(str3); //abcdef var num = 123; console.log(str1 + num); //輸出:abc123 ``` 練習: ``` console.log(11+11); console.log('hello'+'word'); console.log('100'+'100'); console.log('11'+11); console.log('male:'+true); ``` ![](https://img.kancloud.cn/81/da/81da3f5386cca697a48e743220eb7faf_571x163.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>

                              哎呀哎呀视频在线观看