メイン コンテンツをスキップする 補完的コンテンツへスキップ

JOIN_ARRAYS

MessageFormat パターンを使用して、任意の数の配列をインデックスで結合します。

構文

JOIN_ARRAYS(formatString, inputs1[, inputs2, ..., inputsN])

引数

名前 説明 既定値
formatString string {n} が n 番目の入力を出力するフォーマット文字列。たとえば、入力 'a' と 'b' に対してパターン '{0}.{0}.{1}' を使用すると、文字列 'a.a.b' になります。 null
inputs# any

戻り値

string の値を返します。


formatString inputs1 inputs2 inputs3 出力
'{0} {1} is {2} years old' array['John', 'Jane'] array['Smith', 'Johnson'] array[35, 32] [`John Smith is 35 years old`, `Jane Johnson is 32 years old`]
'{0}:{1}' array['red', 'green', 'blue', 'luminosity'] array[255, 255, 0] [`red:255`, `green:255`, `blue:0`, `luminosity:`]

このページは役に立ちましたか?

このページまたはコンテンツにタイポ、ステップの省略、技術的エラーなどの問題が見つかった場合はお知らせください。