<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                | JScript? | [語言參考](#) | |-----|-----| # toString 方法 返回對象的字符串表示。 `objectname.**toString(**[radix]**)**` #### 參數 objectname 必選項。要得到字符串表示的對象。 radix 可選項。指定將數字值轉換為字符串時的進制。 #### 說明 **toString** 方法是所有內建的 JScript 對象的成員。它的操作依賴于對象的類型: | 對象 | 操作 | |-----|-----| | Array | 將 **Array** 的元素轉換為字符串。結果字符串由逗號分隔,且連接起來。 | | Boolean | 如果 Boolean 值是 **true**,則返回 “true”。否則,返回 “false”。 | | Date | 返回日期的文字表示法。 | | Error | 返回一個包含相關錯誤消息的字符串。 | | Function | 返回如下格式的字符串,其中 *functionname* 是被調用 **toString** 方法函數的名稱: ~~~ function functionname( ) { [native code] } ~~~ | | Number | 返回數字的文字表示。 | | String | 返回 **String** 對象的值。 | | 默認 | 返回 “`[object objectname]`”,其中 `objectname` 是對象類型的名稱。 | #### 示例 下面的例子演示了使用帶有 radix 參數的 toString 方法。上面所示函數的返回值是一個 Radix 轉換表。 ~~~ function CreateRadixTable (){ var s, s1, s2, s3, x; // ~~~ 聲明變量。 ~~~ s = "Hex Dec Bin \n"; // ~~~ 創建表頭。 ~~~ for (x = 0; x < 16; x++) // ~~~ 根據所示值的 ~~~ { // ~~~ 數字建立 ~~~ switch(x) // ~~~ 表尺寸。 ~~~ { // ~~~ 設置欄目間空間。 ~~~ case 0 : ~~~ ~~~ s1 = " "; ~~~ ~~~ s2 = " "; ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 1 : ~~~ ~~~ s1 = " "; ~~~ ~~~ s2 = " "; ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 2 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 3 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 4 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 5 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 6 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 7 : ~~~ ~~~ s3 = " "; ~~~ ~~~ break; ~~~ ~~~ case 8 : ~~~ ~~~ s3 = "" ; ~~~ ~~~ break; ~~~ ~~~ case 9 : ~~~ ~~~ s3 = ""; ~~~ ~~~ break; ~~~ ~~~ default: ~~~ ~~~ s1 = " "; ~~~ ~~~ s2 = ""; ~~~ ~~~ s3 = " "; ~~~ ~~~ } // ~~~ 轉換為十六進制、十進制、二進制。 ~~~ s += " " + x.toString(16) + s1 + x.toString(10) ~~~ ~~~ s += s2 + s3 + x.toString(2)+ "\n"; ~~~ ~~~ ~~~ ~~~ } ~~~ ~~~ return(s); // ~~~ 返回整個 ~~~ radix ~~~ 表。 } #### 要求 [版本 2](#) #### 請參閱 [function 語句](#) 應用于: [Array 對象](#) | [Boolean 對象](#) | [Date 對象](#) | [Error 對象](#) | [Function 對象](#) | [Number 對象](#) | [Object 對象](#) | [String 對象](#) [? 2000 Microsoft Corporation 版權所有。保留所有權利。使用規定。](#)
                  <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>

                              哎呀哎呀视频在线观看