serializeList

將第一個參數中指定的清單(任何類型)轉換為字串。 第二個參數代表要使用的分隔符號。 第三個參數是布林值,指出運算式的每個元素是否應包含引號。

類別

清單

函式語法

serializeList(<parameters>)

參數

參數 類型
字串 字串
布林值 布林值
DateTimeOnly DateTimeOnly
清單 listString
清單 listBoolean
清單 listPoint
清單 listDecimal
清單 listDuration
清單 listDateTime
清單 listDateTimeOnly
清單 listDateOnly

簽名和返回類型

serializeList(<listInteger>,<string>,<boolean>)

serializeList(<listDecimal>,<string>,<boolean>)

serializeList(<listString>,<string>,<boolean>)

serializeList(<listBoolean>,<string>,<boolean>)

serializeList(<listDateTimeOnly>,<string>,<boolean>)

serializeList(<listDateTime>,<string>,<boolean>)

serializeList(<listDateOnly>,<string>,<boolean>)

serializeList(<listDuration>,<string>,<boolean>)

serializeList(<listPoint>,<string>,<boolean>)

傳回字串。

範例

serializeList(["Hello","World"], " ", false)

返回"Hello World"。

serializeList(["Hello", "World"], ",", true)

傳回"Hello"、"World""。

本頁內容